{"id":7130,"date":"2013-03-15T16:19:34","date_gmt":"2013-03-15T21:19:34","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7130"},"modified":"2013-09-12T09:13:35","modified_gmt":"2013-09-12T14:13:35","slug":"deploymate-1-0","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/03\/15\/deploymate-1-0\/","title":{"rendered":"Deploymate 1.0"},"content":{"rendered":"<p>Xcode used to let you target an older version of Mac OS X by configuring your project to use that OS&rsquo;s SDK. For example, you could develop on 10.6 while deploying for 10.4. If you used any APIs that were not available in 10.4, Xcode would report a compilation error. Recent versions of Xcode have essentially removed this functionality because Xcode now only supports the SDK for the previous version of the operating system. For example, Mac OS X 10.8 is the current version, so Xcode only includes an SDK for 10.7. Too bad if you want to <a href=\"http:\/\/mjtsai.com\/blog\/2012\/11\/12\/snow-leopard-hanging-around\/\">target 10.6<\/a>. And, presumably, Xcode will soon ship with support for pre-release versions of 10.9, dropping SDK support for 10.7.<\/p>\r\n<p>Apple engineers like to point out that Xcode still lets you set the deployment target to older versions such as 10.6, but in practice this is error-prone because Xcode will never tell you when you are using an API that isn&rsquo;t available on that version. You won&rsquo;t find out until you run the app on the older OS and actually exercise the code path that calls the API. Then it will crash.<\/p>\r\n<p><a href=\"http:\/\/www.deploymateapp.com\">Deploymate<\/a> promises to solve this problem (via <a href=\"https:\/\/twitter.com\/drance\/status\/312617048385675264\">Matt Drance<\/a>). It can analyze an Xcode project and tell you whether you&rsquo;re calling APIs that are not available. Unfortunately, there is currently no way to tell it to <a href=\"http:\/\/www.deploymateapp.com\/faq\/#problemmarking\">ignore calls<\/a> where you know what you&rsquo;re doing, e.g. if you&rsquo;ve conditionalized the call. It may be possible to outsmart its analysis in such cases, however. Even with this limitation, Deploymate looks to be an invaluable addition to my toolkit.<\/p>\r\n<p>The developer tried to make Deploymate available <a href=\"http:\/\/www.deploymateapp.com\/news\/deploymate-mas-distribution\/\">via the Mac App Store<\/a> but was thwarted by sandbox issues.<\/p>\r\n<p>Update (2013-05-05): <a href=\"http:\/\/lapcatsoftware.com\/articles\/sdkvsdeploymenttarget.html\">Jeff Johnson<\/a> shows how to do something similar with a prefix header.<\/p>","protected":false},"excerpt":{"rendered":"<p>Xcode used to let you target an older version of Mac OS X by configuring your project to use that OS&rsquo;s SDK. For example, you could develop on 10.6 while deploying for 10.4. If you used any APIs that were not available in 10.4, Xcode would report a compilation error. Recent versions of Xcode have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[69,380,75,30,32,39,71,53,226],"class_list":["post-7130","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-cocoa","tag-deploymate","tag-developertool","tag-mac","tag-macapp","tag-macappstore","tag-programming","tag-sandboxing","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=7130"}],"version-history":[{"count":5,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7130\/revisions"}],"predecessor-version":[{"id":7822,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7130\/revisions\/7822"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}