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

来源:互联网 发布:js 上传文件 编辑:程序博客网 时间:2024/05/19 05:39


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"