Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Generating dSYM file" takes ages in XCode 4.5

Every time I build in XCode 4.5 I note this step takes over a minute, in a full rebuild this step is probably as long as everything else in total!

I previously used XCode 3.2.6 and building in 4.5 is far slower. Is there anything I can do to improve this? Is there any information on what a dSYM does, I don't recall ever seeing it on 3.2.6.

like image 914
Mr. Boy Avatar asked Oct 08 '12 09:10

Mr. Boy


People also ask

Where are dSYM files stored Xcode?

Find dSYMs on a local machine If your app is released to production, you can also look for its dSYM in the . xcarchive directory on disk: In Xcode, open the Organizer window and select your app from the list. Xcode displays a list of archives for your project.

What is dSYM Xcode?

~/Library/Developer/Xcode/DerivedData/<build id>/Build/Products/<build type>/appname.dSYM. A dSYM file is an ELF file that contains DWARF (debugging with attributed record formats) debug information for your application. DWARF is a debugging file format that supports source-level debugging.


2 Answers

a dSYM file is used to resymbolicate your crash reports from users. Check out this Apple Tech Note, specifically the "Analyzing Crash Reports" section).

To speed things up, you could always turn off dSYM generation for your DEBUG builds and then turn it on for ADHOC and/or Store builds. Here is a related question that talks a bit about that.

like image 196
Michael Dautermann Avatar answered Oct 26 '22 03:10

Michael Dautermann


dsymutil's run time is largely determined by the amount of debug information it needs to process to create the dSYM. Chances are you are using a different compiler in Xcode 3.2.6 vrs. Xcode 4.5, or the 4.5 compiler is emitting more/better debug information so the dsymutil time is longer.

like image 43
Jason Molenda Avatar answered Oct 26 '22 01:10

Jason Molenda