{"id":1798,"date":"2009-05-26T23:12:36","date_gmt":"2009-05-26T23:12:36","guid":{"rendered":"http:\/\/justthesam.com\/2009\/05\/xcode-build-target-switching-gets-me-every-time\/"},"modified":"2009-05-26T23:12:36","modified_gmt":"2009-05-26T23:12:36","slug":"xcode-build-target-switching-gets-me-every-time","status":"publish","type":"post","link":"https:\/\/justthesam.com\/?p=1798","title":{"rendered":"XCode Build Target Switching &#8211; Gets Me Every Time!"},"content":{"rendered":"<div>I&#39;m working on an iPhone app right now, which mostly involves dev\/test against the simulator, with occasional runs on a real iPhone to check everything is running the same there. But every time I flip that menu in the XCode toolbar from Simulator to Device and hit cmd-R I spend five minutes of confusion trying to figure out things aren&#39;t working even nearly right.<\/div>\n<p><\/p>\n<div style=\"text-align: center;\"><a href=\"http:\/\/justthesam.com\/wp-content\/tp\/6a00e5550e01588834011570a82ddb970b\" style=\"display: inline;\"><img decoding=\"async\" alt=\"Picture 2\" border=\"0\" class=\"at-xid-6a00e5550e01588834011570a82ddb970b \" src=\"http:\/\/justthesam.com\/wp-content\/tp\/6a00e5550e01588834011570a82ddb970b-800wi\" title=\"Picture 2\" \/><\/a> <\/div>\n<div style=\"text-align: center;\"><\/div>\n<div style=\"text-align: left;\">After a while and maybe a bit of debugging I&#39;ll get a hunch that all is not as it seems, I&#39;ll do a complete clean and rebuild and then my code will behave perfectly, with XCode whistling&#0160;cherubically&#0160;with an innocent look on its face. All that remains is for me to check the Build menu to reassure myself that cmd-R does in fact do &quot;<span style=\"font-style: italic;\">Build<\/span> and Run&quot; which it most certainly does.<\/div>\n<div style=\"text-align: left;\"><\/div>\n<div style=\"text-align: left;\">I can only assume that there is a bug in XCode that doesn&#39;t correctly reset build state when switching between targets, so it thinks my build is up to date when in fact it&#39;s ancient.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#39;m working on an iPhone app right now, which mostly involves dev\/test against the simulator, with occasional runs on a real iPhone to check everything is running the same there. But every time I flip that menu in the XCode toolbar from Simulator to Device and hit cmd-R I spend five minutes of confusion trying [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,22,33],"tags":[],"class_list":["post-1798","post","type-post","status-publish","format-standard","hentry","category-mac","category-programming","category-webtech"],"_links":{"self":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1798","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1798"}],"version-history":[{"count":0,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1798\/revisions"}],"wp:attachment":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}