{"id":317,"date":"2016-11-18T11:49:08","date_gmt":"2016-11-17T22:49:08","guid":{"rendered":"http:\/\/eion.robbmob.com\/blog\/?p=317"},"modified":"2016-11-18T11:49:08","modified_gmt":"2016-11-17T22:49:08","slug":"building-for-ios5-with-xcode-8","status":"publish","type":"post","link":"https:\/\/eion.robbmob.com\/blog\/2016\/11\/18\/building-for-ios5-with-xcode-8\/","title":{"rendered":"Building for iOS5 with XCode 8"},"content":{"rendered":"<p>Part of my day job is creating a mobile app, of which one of the platforms we deploy to is iOS.  We still have some users out there on iPad 1&#8217;s and the latest version of iOS that&#8217;s available for them is 5.1.1, which the latest version of XCode (version 8.1 at time of writing) doesn&#8217;t support.<\/p>\n<p>Up to and including XCode 8.0 we&#8217;ve been able to build for iOS5 without trouble just by changing the &#8220;Development Target&#8221; setting to 5.1.1, however XCode 8.1 complains with an error &#8220;ld: library not found for -lcrt1.3.1.o&#8221;.  Turns out that the iOS10 SDK doesn&#8217;t ship with this file any more, effectively dropping support for iPad1&#8217;s.<\/p>\n<p>Fortunately the solution is simple, to take a copy of crt1.3.1.o from an older copy of XCode and put it into the <code>\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/SDKs\/iPhoneOS.sdk\/usr\/lib\/<\/code> folder, and just like that it&#8217;s possible to build for iOS5 again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part of my day job is creating a mobile app, of which one of the platforms we deploy to is iOS. We still have some users out there on iPad 1&#8217;s and the latest version of iOS that&#8217;s available for them is 5.1.1, which the latest version of XCode (version 8.1 at time of writing) [&hellip;]<\/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_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3CEsE-57","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/posts\/317"}],"collection":[{"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/comments?post=317"}],"version-history":[{"count":1,"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":318,"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/posts\/317\/revisions\/318"}],"wp:attachment":[{"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/categories?post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eion.robbmob.com\/blog\/wp-json\/wp\/v2\/tags?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}