Error: failed to attach to process ID 0

Source: Internet
Author: User

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

Error: failed to attach to process ID 0

Answer: 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 has ded 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

It is found that running on a real machine is successful. If it is suspected that it is a simulator problem, you may encounter a problem when you exit and shut down the simulator.

 

20130216

This is okay on my simulator. Thanks to the Internet and thanks to the gods for sharing.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.