Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GenerateDSYMFile: dsymutil fails with exit code 11

I upgraded from MacOS X 10.6 (Snow Leopard) to 10.7 (Lion) this morning, and also from Xcode 4.2 to Xcode 4.3.2. Perhaps more importantly, that means that I'm now building my project against the iOS 5.1 SDK instead of 5.0. That's a lot of changes, and one of them caused my project to break: the project will no longer build due to the following error:

Command /Applications/Xcode.app/Contents/Developer/usr/bin/dsymutil
failed with exit code 11

The full command given in the build results is as follows (full disclosure: I've changed the project name to 'MyProject' to protect the innocent):

GenerateDSYMFile /Users/caleb/xcode-build/MyProject-fmkmldxfmhvmoicxrcsqsptzuvjs/Build/Products/Debug-iphoneos/MyProject.app.dSYM /Users/caleb/xcode-build/MyProject-fmkmldxfmhvmoicxrcsqsptzuvjs/Build/Products/Debug-iphoneos/MyProject.app/MyProject
    cd /Users/caleb/MyProject/iphone
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/usr/bin/dsymutil /Users/caleb/xcode-build/MyProject-fmkmldxfmhvmoicxrcsqsptzuvjs/Build/Products/Debug-iphoneos/MyProject.app/MyProject -o /Users/caleb/xcode-build/MyProject-fmkmldxfmhvmoicxrcsqsptzuvjs/Build/Products/Debug-iphoneos/MyProject.app.dSYM

This only happens when I try to build for an iOS device; building for the simulator works fine.

I've done quite a bit of searching to find an explanation of this error, but haven't found anything yet that explains the error. I did find one SO question about the same error, caused in that case by a bad tag in an Info.plist file, but my Info.plist looks fine. Another question suggests creating a new target and copying everything over. I haven't tried that yet as my project is quite large, but it's looking like the best next step.

Can anyone tell me what "exit code 11" from dsymutil means and how to fix it?

Update: Running the dsymutil command at the command line shows that exit code 11 is a segmentation fault. Still don't know what causes it, though.

like image 875
Caleb Avatar asked Mar 22 '12 18:03

Caleb


4 Answers

A workaround that's working for me so far is to change the Debug Information Format setting in the project from "DWARF with dsym" to plain old "DWARF".

Debug Information Format setting

This at least lets me build the project for iOS devices and debug, so that's a very good start. I'm not sure what we lose by leaving out dsym, so I'm going to keep looking.

Update: Apple DTS suggests reinstalling Xcode. I haven't been able to try that yet, but will update this answer if it's helpful.

like image 153
Caleb Avatar answered Nov 08 '22 04:11

Caleb


For future users who come here via Google :

It happened to me because my working directory was full.

EDIT: Clear Some Space in your disk.

P.S. You can always go ahead and delete everything residing in this directory if you have developed so many apps till date on the same machine. /Users/<username>/Library/Developer/Xcode/DerivedData

P.P.S: Don't forget to check the size of the directory to get surprised. It may take upto 4 hours deleting the entire path, so do it in free time, just delete 2-3 sub directories and resume your work.

like image 40
jeet.chanchawat Avatar answered Nov 08 '22 04:11

jeet.chanchawat


Changing "iOS Deployment Target" from 6.1 to 4.0 helped me !

enter image description here

like image 3
Artyom Avatar answered Nov 08 '22 04:11

Artyom


have you made sure that your project build settings, compiler version is set to system default?

like image 2
A.sharif Avatar answered Nov 08 '22 06:11

A.sharif