代码改变世界

控制台总是输出:xcode error: failed to attach to process ID 0

2013-04-25 13:48  三戒1993  阅读(206)  评论(0编辑  收藏  举报


Xcode compiles my App, but can't run it in the simulator?

一种情况是你多个target中使用的相同的Bundle identifier和Bundle display name,所以改成不同的,要把模拟器里的app清空下

The solution for me was to delete everything Xcode has generated earlier:

  • the App on the Simulator...if this is not possible because you cant reach the Homescreen, you can delete the App directly under ~/Library/Application Support/iPhoneSimulator/6.0/Applications
  • delete the Derived Data in the Organizer under Projects or directly in~/Library/Developer/Xcode/DerivedData
  • clean the Build Folder by choosing "Product" in the MenuBar and click while you press the Alt-key on "Clean Build Folder"

版权声明:本文为博主原创文章,未经博主允许不得转载。