Xcode 4.6 Organizer Does Not Symbolize My Application Stack Trace

It has been a while since I used the Xcode character and it worked. Today, when I tried this ...

  • Archive of my application.
  • Install the application on my device with Xcode. (Just plug in your device and run the app in release mode).
  • Stopped the application from Xcode.
  • Run the application on my device (which is connected to the Mac), which, of course, crashed.
  • Now when I open the Organizer and go to the device log, it shows a new crash log file.
  • But it cannot symbolize the symbols of my application. All Apple Library materials are symbolized in order.

I searched the whole network, nothing works.

Edit: in the build settings, if I turn off the Strip Debug Symbol When Copy even for the release build, everything works fine. But Xcode would have to symbolize the use of the dSYM file, I think. I do not want to distribute the application using debugging symbols.

Thanks in advance.

+4
source share
3 answers

This article will help you find where the problem is: http://support.hockeyapp.net/kb/how-tos-faq/how-to-solve-symbolication-problems

Since you say that run in release mode , the version running on the device is NOT the one you archived! Therefore, if there is already a release build in the DerivedData directory, this will take it. Otherwise, he will create a new assembly and install it.

Now there are two possibilities why symbolism does not work:

  • You do another release build later, so the previous build and dSYM will be overwritten (see explanation in the link above).
  • Spotlight does not find the dSYM and app binary with the UUID recorded in the crash report (see the explanation at the link above to make sure)

Update: note about the removal of characters: when you do not remove characters, as indicated in the edited message, the symbolism is already done on the device. But, of course, you do not have enough line numbers.

+4
source

After the link provided by Kerni in the above solution, I found that it was a spotlight that could not find the dSYM file using the UUID of the fault log file.

Executing the following command ...

mdimport.

... in the product folder (where MyApp1.app and myApp.app.dSYM are located) the problem is resolved.

I'm not sure why I have to run it every time I create my application, my mac does not do this automatically for some reason. But it works.

0
source

I installed Xcode in a directory with spaces. I fixed it by removing white spaces in the directory and running xcode-select. (mdimport did not work for me)

  sudo xcode-select -switch <myxcodedir> 
0
source

All Articles