{"id":3935,"date":"2018-09-06T09:58:53","date_gmt":"2018-09-06T09:58:53","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=3935"},"modified":"2018-09-06T09:58:53","modified_gmt":"2018-09-06T09:58:53","slug":"run-app-iphone-newest-os-version-via-older-version-xcode","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/ios\/run-app-iphone-newest-os-version-via-older-version-xcode\/","title":{"rendered":"How to run your app on the iPhone with the newest OS version via an older version of Xcode?"},"content":{"rendered":"<p>In this short post, I&#8217;ll explain how to run your app via an older version of Xcode (9.2 in my particular case) on your iPhone that has the newest OS (11.4.1 in my case at the time of this writing).<\/p>\n<p>Say you update your iPhone OS to the newest version, and you open the project in an older version of Xcode and try to run it. You will most probably get an error similar to this (version numbers may vary):<\/p>\n<blockquote><p>\n  Could not locate device support files on iPhone X (11.1) with Xcode (9.2 9C32c)\n<\/p><\/blockquote>\n<p>The problem has been addressed in these two StackOverflow posts:<\/p>\n<ul>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/49720178\/xcode-not-supported-for-ios-11-3-by-xcode-9-2-needed-9-3\/5059639\">Xcode not supported for iOS 11.3 by Xcode 9.2 needed 9.3<\/a><\/li>\n<li><a href=\"https:\/\/stackoverflow.com\/questions\/47119186\/how-to-fix-xcode-error-could-not-locate-device-support-files-on-iphone-x-11-1\">How to fix Xcode error: Could not locate device support files on iPhone X (11.1) with Xcode Beta (9.2 9C32c)<\/a><\/li>\n<\/ul>\n<p>The solution is basically to go <a href=\"https:\/\/github.com\/filsv\/iPhoneOSDeviceSupport\">on this Github project<\/a> and download the device support files and place them in the <code>DeviceSupport<\/code> folder of your Xcode app.<\/p>\n<p>You can get to the <code>DeviceSupport<\/code> folder by going into your <code>Applications<\/code>, find the Xcode app, right-click on it and select <code>Show Package Contents<\/code>. Then navigate to <code>Contents &gt; Developer &gt; Platforms &gt; iPhoneOS.platform &gt; DeviceSupport<\/code> and paste the contents of the downloaded file there.<\/p>\n<p>All you have to do now is to restart Xcode and run the app again.<\/p>\n<p>\u26a0\ufe0f Now here&#8217;s the potentially tricky party; you may realize that even though you&#8217;ve downloaded the correct support files from Github (and restarted Xcode) the Xcode is still not happy with it. Say for example you&#8217;ve downloaded <code>11.4 (15F79)<\/code> but after restarting and running again you get an error mentioning something like <code>11.4.1 (15G77)<\/code>. The solution there is to just rename the folder to that, restart Xcode and voila, it works!<\/p>\n<p>Hope this helps someone ?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this short post, I&#8217;ll explain how to run your app via an older version of Xcode (9.2 in my particular case) on your iPhone that has the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3937,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"class_list":["post-3935","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ios"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=3935"}],"version-history":[{"count":1,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3935\/revisions"}],"predecessor-version":[{"id":3938,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3935\/revisions\/3938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/3937"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=3935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=3935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=3935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}