{"id":501,"date":"2016-02-13T17:29:40","date_gmt":"2016-02-13T16:29:40","guid":{"rendered":"http:\/\/www.psinke.nl\/blog\/?p=501"},"modified":"2016-02-13T17:30:29","modified_gmt":"2016-02-13T16:30:29","slug":"running-xcode-simulator-results-in-launchserviceserror-error-0","status":"publish","type":"post","link":"https:\/\/www.psinke.nl\/blog\/running-xcode-simulator-results-in-launchserviceserror-error-0\/","title":{"rendered":"Running XCode simulator results in &#8220;LaunchServicesError error 0.&#8221;"},"content":{"rendered":"<div class=\"afa2b3b851443650502c43e85c746c1f\" data-index=\"1\" style=\"float: none; margin:0px;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-4223201538046844\";\r\n\/* standaardblok *\/\r\ngoogle_ad_slot = \"9522527129\";\r\ngoogle_ad_width = 320;\r\ngoogle_ad_height = 50;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>So, one moment you&#8217;re app was running fine in the simulator and the next moment you get an error saying \u00a0&#8220;<strong><span style=\"color: #993300;\">The operation could not be completed.\u00a0(LaunchServicesError error 0.)&#8221;<\/span><\/strong><\/p>\n<p>Bummer! When you check your logs (see\u00a0<span style=\"color: #0000ff;\">~\/Library\/Logs\/CoreSimulator\/CoreSimulator.log<\/span> or\u00a0<span style=\"color: #0000ff;\">~\/Library\/Logs\/CoreSimulator\/[Device UDID]\/system.log<\/span>) you&#8217;ll find errors like &#8220;<em>\/&lt;app name&gt;.app did not have a CFBundleIdentifier in its Info.plist}&#8221;<\/em>. And when you check your Info.plist all is fine there.<\/p>\n<p>Don&#8217;t despair. You probably created a folder &#8220;Resources&#8221; in your Project Navigator. And while that&#8217;s a perfectly reasonable name for a project folder, XCode does not like that. All you have to do is rename the folder and chances are your project\u00a0will run again.<\/p>\n<!--CusAds0-->\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>So, one moment you&#8217;re app was running fine in the simulator and the next moment you get an error saying \u00a0&#8220;The operation could not be completed.\u00a0(LaunchServicesError error 0.)&#8221; Bummer! When you check your logs (see\u00a0~\/Library\/Logs\/CoreSimulator\/CoreSimulator.log or\u00a0~\/Library\/Logs\/CoreSimulator\/[Device UDID]\/system.log) you&#8217;ll find errors like &#8220;\/&lt;app name&gt;.app did not have a CFBundleIdentifier in its Info.plist}&#8221;. And when you check&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,360,381],"tags":[418,417,419,416,415,283],"class_list":["post-501","post","type-post","status-publish","format-standard","hentry","category-apple-blog","category-mobile-development","category-xcode-swift","tag-cfbundleidentifier","tag-error","tag-info-plist","tag-launchservices","tag-simulator","tag-xcode"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/comments?post=501"}],"version-history":[{"count":2,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/501\/revisions"}],"predecessor-version":[{"id":503,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/posts\/501\/revisions\/503"}],"wp:attachment":[{"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/media?parent=501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/categories?post=501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psinke.nl\/blog\/wp-json\/wp\/v2\/tags?post=501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}