Xcode Instruments is stripping symbols despite all build settings to the contrary

前端 未结 7 2147
粉色の甜心
粉色の甜心 2021-02-05 17:05

Problem

Instruments\' Time Profiler is stripping all symbols except system libraries from my app, despite the fact that I have disabled this behavior in

相关标签:
7条回答
  • 2021-02-05 17:52

    I'm not sure that it has been fixed in the 4.3 but this is a known problem in 4.2 seen here

    Instruments There is a known issue with the Profile action from Xcode 4.2. After a build in which no source files have changed, Instruments will be unable to gather symbols for the target application.

    This affects projects where both:

    1. The Release configuration is selected for the Profile action. (default)
    2. The Strip Linked Product build setting is set to "Yes”, or a custom Run Script build phase strips the product. (non-default)

    The workaround is to do any one of the following:

    1. Perform a "Clean" on the product before initiating the Profile action.
    2. Do a Clean of the product and temporarily set the Strip Linked Product build setting to "No" while Profiling.
    3. Set the configuration of the Profile action to Debug.
    4. Run successive profiles directly from within Instruments when you do not need to rebuild. When developing Mac apps, using the GC Monitor template in Instruments may cause Instruments to crash. To workaround the problem please consider migrating your application to ARC.
    0 讨论(0)
提交回复
热议问题