Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save norio-nomura/ea63b61ab942fff2e2b3 to your computer and use it in GitHub Desktop.
Save norio-nomura/ea63b61ab942fff2e2b3 to your computer and use it in GitHub Desktop.
How to use swift-2.2-SNAPSHOT in xcodebuild

How to use swift-2.2-SNAPSHOT in xcodebuild

  1. Download Apple Platforms installer from swift.org and install it

  2. Create swift-latest.xcconfig as following contents:

     SWIFT_EXEC=/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/swiftc
     XCODE_DEFAULT_TOOLCHAIN_OVERRIDE=/Library/Developer/Toolchains/swift-latest.xctoolchain
    
  3. Launch xcodebuild with XCODE_XCCONFIG_FILE environment variable containing path of swift-latest.xcconfig

     XCODE_XCCONFIG_FILE=/path/to/swift-latest.xcconfig xcodebuild
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment