博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

error: failed to attach to process ID 0

Posted on 2013-03-05 09:36  星尘的天空  阅读(522)  评论(0编辑  收藏  举报

Link Address:http://blog.sina.com.cn/s/blog_8aecea5f0101atpv.html

error: failed to attach to process ID 0

答案:
Open only XCode without opening project -> Go to Window -> Organizer -> [ProjectName] and delete it completely -> Quit XCode -> Open iPhone simulator and reset settings -> Quit iPhone simulator -> reboot Mac -> reopen XCode and run application

I've met the same problem

1.you can delete the App directy under ~/Library/Application Support/iPhone Simulator/6.0/Applications and ~/Library/Developer/Xcode/DerivedData

2.then you can start Xcode ; in the menubar you can find Project -> Clean

I experienced the same problem, and after a while I found out that it was due to the fact that my XCode project included a Folder Reference to a folder named Resources. 

It seems that XCode doesn't like that name. 

Just removing the folder reference or renaming the folder solved the issue. 

 

 

go to the Product menu and find the Edit Scheme menu there.

While in Edit Scheme window, select the "Run" option on the left hand side of the screen and then on the right hand side, change the debugger from LLDB to GDB.

20130206

发现用真机跑是能够成功的,怀疑是模拟器的问题,自己在退出关闭模拟器时出现问题

 

20130216

一下这个在我的模拟器上OK了,感谢互联网,感谢神人分享

Go to IOS Simulator tool bar and click Reset Content and Settings...

http://stackoverflow.com/questions/12741188/error-failed-to-attach-to-process-id-0

 

THE END!

2013-03-05