{"id":3217,"date":"2016-09-18T06:56:34","date_gmt":"2016-09-18T12:56:34","guid":{"rendered":"http:\/\/dev.iachieved.it\/iachievedit\/?p=3217"},"modified":"2016-09-18T06:56:34","modified_gmt":"2016-09-18T12:56:34","slug":"faster-carthage-builds","status":"publish","type":"post","link":"https:\/\/dev.iachieved.it\/iachievedit\/faster-carthage-builds\/","title":{"rendered":"Faster Carthage Builds"},"content":{"rendered":"<p>I love <a href=\"https:\/\/github.com\/Carthage\/Carthage\">Carthage<\/a> for managing external dependencies in my Xcode projects.  What I don&#8217;t care for is that most READMEs have you edit your <code>Cartfile<\/code> and then run <code>carthage update<\/code>.  By default this will compile the dependencies for every target that the 3rd party framework supports:  iOS, tvOS, watchOS, and macOS.  If I&#8217;m working on an iOS-only project that&#8217;s a significant waste of my time.<\/p>\n<p>Lucky for us you can bypass all that and specify <i>only<\/i> the platform you want to build for with the <code>--platform<\/code> argument:<\/p>\n<pre class=\"crayon:false\">\nnotification git:(master) carthage update --platform ios\n*** Fetching SQLite.swift\n*** Checking out SQLite.swift at \"8b95a0c4a884f35e5102cd306f634680255473bb\"\n*** xcodebuild output can be found in \/var\/folders\/b_\/mwxmgbj530l2l5jzl6ygnqtr0000gn\/T\/carthage-xcodebuild.P0EL0n.log\n*** Building scheme \"SQLite iOS\" in SQLite.xcodeproj\n<\/pre>\n<p>You can also specify a number of platforms using a comma-separated list:  <code>carthage update --platform tvos,ios<\/code>.<\/p>\n<p>The <code>--platform<\/code> argument can also be used with the <code>build<\/code> command:  <code>carthage build --platform ios<\/code><\/p>\n<p>So, stop wasting time building for platforms you don&#8217;t need.  Use <code>--platform<\/code> and call out only those your project supports!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I love Carthage for managing external dependencies in my Xcode projects. What I don&#8217;t care for is that most READMEs have you edit your Cartfile and then run carthage update. By default this will compile the dependencies for every target that the 3rd party framework supports: iOS, tvOS, watchOS, and macOS. If I&#8217;m working on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[65,64],"class_list":["post-3217","post","type-post","status-publish","format-standard","hentry","category-apple","tag-carthage","tag-ios"],"_links":{"self":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/3217"}],"collection":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/comments?post=3217"}],"version-history":[{"count":3,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/3217\/revisions"}],"predecessor-version":[{"id":3220,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/3217\/revisions\/3220"}],"wp:attachment":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/media?parent=3217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/categories?post=3217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/tags?post=3217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}