How to remove debug symbols executable MacOSHow can I Remove .DS_Store files from a Git repository?How to check for an active Internet connection on iOS or macOS?Xcode “Build and Archive” from command lineVisual Studio loading symbols#if DEBUG vs. Conditional(“DEBUG”)Where is JAVA_HOME on macOS Mojave (10.14) to Lion (10.7)?How do I install pip on macOS or OS X?Why does .o files contain debug symbols but static library (.a) does not?NodeJS native module - how to remove debug symbolsHow to Not Strip Debug Symbols in Xcode 9
Should I cross-validate metrics that were not optimised?
What caused the flashes in the video footage of Chernobyl?
Is it possible that Curiosity measured its own methane or failed doing the spectrometry?
Why did moving the mouse cursor cause Windows 95 to run more quickly?
When should we use dependency injection (C#)
Olive oil in Japanese cooking
How frequently do Russian people still refer to others by their patronymic (отчество)?
What is the difference between a historical drama and a period drama?
Has there ever been a cold war other than between the U.S. and the U.S.S.R.?
Recolour existing plots
List of Implementations for common OR problems
How might boat designs change in order to allow them to be pulled by dragons?
What is the right way to query an I2C device from an interrupt service routine?
How to widen the page
Why did my leaking pool light trip the circuit breaker, but not the GFCI?
Isn't "Dave's protocol" good if only the database, and not the code, is leaked?
A student "completes" 2-week project in 3 hours and lies about doing it himself
What can a novel do that film and TV cannot?
Term for a character that only exists to be talked to
gzip compress a local folder and extract it to remote server
Will greasing clutch parts make it softer
Why is quantum gravity non-renormalizable?
Finding integer database columns that may have their data type changed to reduce size
Which high-degree derivatives play an essential role?
How to remove debug symbols executable MacOS
How can I Remove .DS_Store files from a Git repository?How to check for an active Internet connection on iOS or macOS?Xcode “Build and Archive” from command lineVisual Studio loading symbols#if DEBUG vs. Conditional(“DEBUG”)Where is JAVA_HOME on macOS Mojave (10.14) to Lion (10.7)?How do I install pip on macOS or OS X?Why does .o files contain debug symbols but static library (.a) does not?NodeJS native module - how to remove debug symbolsHow to Not Strip Debug Symbols in Xcode 9
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am working on Qt application for MacOS. There, in order to debug I would like to build with debug symbols. For that, following Qt dos I have added
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
I have checked and it works, symbols are there.
I would like to know if there is a way to remove those symbols AFTER BUILD. I have tried strip command on the executable but apparently it does nothing. This command:
otool -Iv build/MyApp.app/Contents/MacOS/MyApp
has same output after running strip. Could someone tell me how to effectively remove debug symbols? Also, the way I am using to check that symbols are gone, is it the right one ? If not how could I verify that?
Thanks in advance
macos build release debug-symbols
add a comment |
I am working on Qt application for MacOS. There, in order to debug I would like to build with debug symbols. For that, following Qt dos I have added
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
I have checked and it works, symbols are there.
I would like to know if there is a way to remove those symbols AFTER BUILD. I have tried strip command on the executable but apparently it does nothing. This command:
otool -Iv build/MyApp.app/Contents/MacOS/MyApp
has same output after running strip. Could someone tell me how to effectively remove debug symbols? Also, the way I am using to check that symbols are gone, is it the right one ? If not how could I verify that?
Thanks in advance
macos build release debug-symbols
strip
should work. Are still seeing private symbols after using it?
– TheNextman
Mar 25 at 23:55
@TheNextman what should I see if there are no symbols as output?
– RuLoViC
Mar 26 at 13:27
1
If you runnm
on your binary, the symbols are listed with their symbol type. Globally visible names (marked withT
) will not be stripped.
– TheNextman
Mar 26 at 16:17
add a comment |
I am working on Qt application for MacOS. There, in order to debug I would like to build with debug symbols. For that, following Qt dos I have added
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
I have checked and it works, symbols are there.
I would like to know if there is a way to remove those symbols AFTER BUILD. I have tried strip command on the executable but apparently it does nothing. This command:
otool -Iv build/MyApp.app/Contents/MacOS/MyApp
has same output after running strip. Could someone tell me how to effectively remove debug symbols? Also, the way I am using to check that symbols are gone, is it the right one ? If not how could I verify that?
Thanks in advance
macos build release debug-symbols
I am working on Qt application for MacOS. There, in order to debug I would like to build with debug symbols. For that, following Qt dos I have added
QMAKE_CFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_OBJECTIVE_CFLAGS_RELEASE = $$QMAKE_OBJECTIVE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
I have checked and it works, symbols are there.
I would like to know if there is a way to remove those symbols AFTER BUILD. I have tried strip command on the executable but apparently it does nothing. This command:
otool -Iv build/MyApp.app/Contents/MacOS/MyApp
has same output after running strip. Could someone tell me how to effectively remove debug symbols? Also, the way I am using to check that symbols are gone, is it the right one ? If not how could I verify that?
Thanks in advance
macos build release debug-symbols
macos build release debug-symbols
asked Mar 25 at 18:15
RuLoViCRuLoViC
2851 silver badge15 bronze badges
2851 silver badge15 bronze badges
strip
should work. Are still seeing private symbols after using it?
– TheNextman
Mar 25 at 23:55
@TheNextman what should I see if there are no symbols as output?
– RuLoViC
Mar 26 at 13:27
1
If you runnm
on your binary, the symbols are listed with their symbol type. Globally visible names (marked withT
) will not be stripped.
– TheNextman
Mar 26 at 16:17
add a comment |
strip
should work. Are still seeing private symbols after using it?
– TheNextman
Mar 25 at 23:55
@TheNextman what should I see if there are no symbols as output?
– RuLoViC
Mar 26 at 13:27
1
If you runnm
on your binary, the symbols are listed with their symbol type. Globally visible names (marked withT
) will not be stripped.
– TheNextman
Mar 26 at 16:17
strip
should work. Are still seeing private symbols after using it?– TheNextman
Mar 25 at 23:55
strip
should work. Are still seeing private symbols after using it?– TheNextman
Mar 25 at 23:55
@TheNextman what should I see if there are no symbols as output?
– RuLoViC
Mar 26 at 13:27
@TheNextman what should I see if there are no symbols as output?
– RuLoViC
Mar 26 at 13:27
1
1
If you run
nm
on your binary, the symbols are listed with their symbol type. Globally visible names (marked with T
) will not be stripped.– TheNextman
Mar 26 at 16:17
If you run
nm
on your binary, the symbols are listed with their symbol type. Globally visible names (marked with T
) will not be stripped.– TheNextman
Mar 26 at 16:17
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344162%2fhow-to-remove-debug-symbols-executable-macos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55344162%2fhow-to-remove-debug-symbols-executable-macos%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
strip
should work. Are still seeing private symbols after using it?– TheNextman
Mar 25 at 23:55
@TheNextman what should I see if there are no symbols as output?
– RuLoViC
Mar 26 at 13:27
1
If you run
nm
on your binary, the symbols are listed with their symbol type. Globally visible names (marked withT
) will not be stripped.– TheNextman
Mar 26 at 16:17