简体   繁体   English

GenerateDSYMFile:dsymutil失败,退出代码为11

[英]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. 我今天早上从MacOS X 10.6(Snow Leopard)升级到10.7(Lion),从Xcode 4.2升级到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. 也许更重要的是,这意味着我现在正在构建针对iOS 5.1 SDK而不是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): 构建结果中给出的完整命令如下(完全公开:我已将项目名称更改为“MyProject”以保护无辜者):

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; 这只有在我尝试为iOS设备构建时才会发生; 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. 我找到了一个关于同一错误的SO问题 ,在这种情况下由Info.plist文件中的错误标记引起,但我的Info.plist看起来很好。 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? 谁能告诉我dsymutil “退出代码11”是dsymutil意思以及如何修复它?

Update: Running the dsymutil command at the command line shows that exit code 11 is a segmentation fault. 更新:在命令行运行dsymutil命令显示退出代码11是分段错误。 Still don't know what causes it, though. 但是仍然不知道是什么原因造成的。

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". 到目前为止,对我有用的解决方法是将项目中的“调试信息格式”设置从“DWARF with dsym”更改为普通的“DWARF”。

调试信息格式设置

This at least lets me build the project for iOS devices and debug, so that's a very good start. 这至少让我为iOS设备和调试构建项目,这是一个非常好的开始。 I'm not sure what we lose by leaving out dsym, so I'm going to keep looking. 我不确定丢弃dsym会失去什么,所以我会继续寻找。

Update: Apple DTS suggests reinstalling Xcode. 更新: Apple DTS建议重新安装Xcode。 I haven't been able to try that yet, but will update this answer if it's helpful. 我还没有尝试过,但如果它有用,会更新这个答案。

For future users who come here via Google : 对于通过Google访问此处的未来用户:

It happened to me because my working directory was full.

EDIT: Clear Some Space in your disk. 编辑:清除磁盘中的一些空间。

PS 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. PS如果您在同一台计算机上开发了如此多的应用程序,那么您可以随时删除驻留在此目录中的所有内容。 /Users/<username>/Library/Developer/Xcode/DerivedData

PPS: Don't forget to check the size of the directory to get surprised. PPS:不要忘记检查目录的大小以获得惊讶。 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. 删除整个路径可能需要4个小时,所以在空闲时间执行此操作,只需删除2-3个子目录并继续工作。

Changing "iOS Deployment Target" from 6.1 to 4.0 helped me ! 将“iOS部署目标”从6.1更改为4.0对我有所帮助!

在此输入图像描述

你确定你的项目构建设置,编译器版本是否设置为系统默认值?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM