XCode hangs when archiving

怎甘沉沦 提交于 2019-12-11 03:16:01

问题


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?


回答1:


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)




回答2:


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.




回答3:


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:

<key>CFBundleIcons</key>
   <array>
      <string>MyIcon</string>
      <string>MyIcon@2x</string>
   </array>

I solved the problem by reorganising the keys in the following way, as they should be:

<key>CFBundleIcons</key>
   <dict>
      <key>CFBundlePrimaryIcon</key>
      <dict>
         <key>CFBundleIconFiles</key>
         <array>
            <string>MyIcon</string>
            <string>MyIcon@2x</string>
         </array>

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.



来源:https://stackoverflow.com/questions/9116934/xcode-hangs-when-archiving

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!