Debug symbols and linker flags

I’m wondering about the extra linker flags Unity places in the generated Xcode projects, -S -x, which to my understanding strip all symbol names and debugging information from the generated object files, thus making it impossible to gather debugging information to translate crash logs and backtraces (this is the source for the “no debugging information for architecture armv6/armv7” that a lot of people see when compiling in Xcode). Is there any reason for these flags? Would we run into any problems were we to remove them?

Thanks in advance for any info! Regards,

  • jmpp

actually for the 4.3 SDK you need to remove them.

From what I’ve read, you’re not supposed to actually remove them, but rather add the -all_load flag, per this post:

Unless you know something else that wasn’t said there…?

  • jmpp

-S -x save you couple of megabytes on distribution size. When you get a crashlog, just rebuild your distribution Xcode project without these flags and use it to symbolicate the dump. Those flags do not change code segment layout that’s why it works.