归档时 XCode 挂起
当我尝试归档某个项目时,Xcode 无法响应。如果不管他,他会在很长一段时间后设法打开组织者。档案就在那里。如果从library/developer/xcode/archives中手动删除,Xcode会再次响应。
这种情况只发生在这个项目中,所有其他归档都很好。
就好像 Xcode 项目有重大问题一样。
我们使用的是 Xcode 4.2.1,但也尝试过 4.3(结果相同)。
知道可能出了什么问题吗?
When I try to archive one certain project, Xcode fails to respond. If left alone he manages to open the Organiser after a long period. The archive is there. If removed manually from library/developer/xcode/archives Xcode responds again.
It happens just with this project, all others archiving just fine.
As if Xcode has major problems with the project.
We are using Xcode 4.2.1 but tried 4.3 too (same result).
Any idea what might be wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么 xcode 4.3.2 归档时会挂起?
上面的帖子有这个问题的正确答案。我已经与这个问题斗争了一段时间并运行 xcode-select -switch /Applications/Xcode.app/Contents/Developer/ 修复了它。
解释是 xcode 4 安装程序中遗留了一些旧命令。
Why does xcode 4.3.2 hang when archiving?
This above post has the correct answer to this problem. I've been fighting this one for a while and running xcode-select -switch /Applications/Xcode.app/Contents/Developer/ fixed it.
The explanation is that some old commands got left in the xcode 4 installer.
我有类似的问题
我发现我所做的符号链接是问题的原因
从 /Developer/usr/bin 到 /usr/bin (因为 Xcode 4.3 移动了一些执行程序)
I had similar problems
I found that a symbolic link I did was the cause of the problem
from /Developer/usr/bin to /usr/bin (because Xcode 4.3 moved some of the execs)
还与这个问题斗争了几个小时。就我而言,XCode 在归档或运行单元测试时崩溃了。
就我而言,info.plist 值无效。我不小心将图标数组添加到了“CFBundleIcons”键中,如下所示:
我通过按以下方式重新组织键解决了问题,因为它们应该是:
所以您可能需要在应用程序安装时检查 info.plist 是否有错误,并且按预期运行但无法存档或单元测试使 XCode 崩溃。
Also battled for hours with this problem. In my case XCode was crashing when archiving or running unit tests.
In my case the info.plist values weren't valid. I accidentially added the icon array to the "CFBundleIcons" key like that:
I solved the problem by reorganising the keys in the following way, as they should be:
So you might want to check your info.plist for errors when your application installs and runs as it should but couldn't be archived or unit tests crash XCode.