Change IOS Library Symbol Handling #1277

Closed
cfis opened this Issue Mar 13, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@cfis

cfis commented Mar 13, 2013

Previously crashes from our app that originated in RestKit could not be fully symbolicated - we could get the method name but not the line number or source code.

We fixed this issue via changing these settings for Release builds:

Strip Debug Symbols During Copy (COPY_PHASE_STRIP): No
Strip Linked Product (STRIP_INSTALLED_PRODUCT): No
Symbols Hidden By Default (GCC_SYMBOLS_PRIVATE_EXTERN): No
Inline Methods Hidden (GCC_INLINES_ARE_PRIVATE_EXTERN): No

Note these settings do *not *result in the symbols being included in the final executable. They still get stripped to the DSYM since the app project sets Strip Debug Symbols to YES for release builds.

But they do allow Xcode to see the symbols when creating the final executable and allow the static library symbols to get included in the final DSYM file thereby allowing full symoblication of crash reports.

So - the request is to update the RestKit ios project file. Happy to submit a pull request if you would like.

There is a lot of confusion on the Web about this, but a couple posts helped us figure it out:

http://stackoverflow.com/questions/10145584/symbolicating-crash-log-for-app-with-static-library

TheRealKerni/QuincyKit#91 (comment)

@ghost ghost assigned blakewatters Mar 13, 2013

@blakewatters

This comment has been minimized.

Show comment Hide comment
@blakewatters

blakewatters Mar 13, 2013

Owner

Seems reasonable. Will push the changes shortly.

Owner

blakewatters commented Mar 13, 2013

Seems reasonable. Will push the changes shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment