{"id":1000,"date":"2012-11-05T18:32:56","date_gmt":"2012-11-06T02:32:56","guid":{"rendered":"http:\/\/www.wiredatom.com\/blog\/?p=1000"},"modified":"2014-09-17T00:07:49","modified_gmt":"2014-09-17T08:07:49","slug":"resolving-error-failed-to-attach-to-process-id-0-in-xcode","status":"publish","type":"post","link":"https:\/\/www.wiredatom.com\/blog\/2012\/11\/05\/resolving-error-failed-to-attach-to-process-id-0-in-xcode\/","title":{"rendered":"Resolving &#8220;error: failed to attach to process ID 0&#8221; in Xcode"},"content":{"rendered":"<p>This was a bitch to track down.<\/p>\n<div class=\"codecolorer-container objc railscasts\" style=\"overflow:auto;white-space:nowrap;width:680px;\"><div class=\"objc codecolorer\">error<span class=\"sy0\">:<\/span> failed to attach to process ID <span class=\"nu0\">0<\/span><\/div><\/div>\n<p>Basically it means Xcode is not able to attach a build of your app to the simulator. I was, however, able to build it directly on the iPhone. To solve this problem, simply do the following:<br \/>\n*   Click on Simulator and reset the simulator by going to the &#8220;iOS Simulator&#8221; main menu and choose &#8220;Reset Content and Settings\u00e2\u20ac\u00a6<br \/>\n*   Back in XCode, choose the menu <code class=\"codecolorer text default\"><span class=\"text\">&quot;Product&quot; &gt; &quot;Edit Scheme&quot;<\/span><\/code>. On the left menu panel, click on <code class=\"codecolorer text default\"><span class=\"text\">&quot;Run &lt;em&gt;Your_Project_Name&lt;\/em&gt;.app&quot; &gt; &quot;Run _Your_Project_Name.app&quot;<\/span><\/code>. The info display on the right should have the <code class=\"codecolorer text default\"><span class=\"text\">&quot;Debug Process As&quot;<\/span><\/code> radio button picked as <code class=\"codecolorer text default\"><span class=\"text\">&quot;Me (your-user-name)&quot;<\/span><\/code>. If not, make sure you do not login as root. On Stackoverflow there are many reports of running as root will have problems<br \/>\n*   Next, still in Xcode, go to the menu <code class=\"codecolorer text default\"><span class=\"text\">&quot;Window&quot; &gt; &quot;Organizer&quot;<\/span><\/code>. On the top menu, click on <code class=\"codecolorer text default\"><span class=\"text\">&quot;Projects&quot;<\/span><\/code>. Go ahead and delete <code class=\"codecolorer text default\"><span class=\"text\">&quot;Derived Data&quot;<\/span><\/code>.<br \/>\n*   Finally, go to <code class=\"codecolorer text default\"><span class=\"text\">&quot;~\/Library\/Application Support\/iPhone Simulator\/6.0\/Applications&quot;<\/span><\/code> and delete everything that&#8217;s in there<\/p>\n<p>Restart Xcode and the simulator. And Bob&#8217;s your uncle.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This was a bitch to track down. error: failed to attach to process ID 0 Basically it means Xcode is not able to attach a build of your app to the simulator. I was, however, able to build it directly on the iPhone. To solve this problem, simply do the following: * Click on Simulator &hellip; <a href=\"https:\/\/www.wiredatom.com\/blog\/2012\/11\/05\/resolving-error-failed-to-attach-to-process-id-0-in-xcode\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Resolving &#8220;error: failed to attach to process ID 0&#8221; in Xcode&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7,10],"tags":[],"class_list":["post-1000","post","type-post","status-publish","format-standard","hentry","category-day-to-day-life","category-geek-stuff"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p54IqZ-g8","_links":{"self":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/1000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/comments?post=1000"}],"version-history":[{"count":1,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/1000\/revisions"}],"predecessor-version":[{"id":1002,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/1000\/revisions\/1002"}],"wp:attachment":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/media?parent=1000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/categories?post=1000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/tags?post=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}