How to set up a profiler config for XCode

Yes there is one!

Do not check “Debugging enabled” and then add the following to the “Custom Xcode flags” field:

GCC_GENERATE_DEBUGGING_SYMBOLS = YES

You can also add more Xcode settings (separated by commas) to control what kind of debugging information Xcode will produce (GCC_DEBUGGING_SYMBOLS, DEBUG_INFORMATION_FORMAT…).

Have a look at Xcode Build Settings Reference for the comprehensive list of Xcode settings.

That forum thread could also be interesting:

2 Likes