Carthage/Carthage

Xcode 8b4 and toolchain

TofPlay opened this issue · 2 comments

  • carthage version: 0.17.2
  • xcodebuild -version: Xcode 7.3.1 Build version 7D1014
  • Are you using --no-build? No
  • Are you using --no-use-binaries? Yes
  • Are you using --use-submodules? No

I have to work Xcode 7 and Swift 2.2 projects and prepare the migration to Xcode 8 and Swift 3. Actually each time I want to build project for Swift 3 I'm using xcode-select to switch to Xcode 8 environment and vice versa. In time it's pretty constraining to do so.
I saw that Carthage was an option toolchain. But I have not found how to have the list of toolchains available on the Mac .
Is there an option with Carthage to list the available toolchains (beta version included)?

No way to list the available toolchains (that I'm aware of) but the reverse domain identifiers follow the format com.apple.dt.toolchain.{TOOLCHAIN NAME}. The available toolchains are inside the Xcode package at /Application/Xcode.app/Developer/Toolchains.

So for Swift 2.3 you'd pass --toolchain com.apple.dt.toolchain.Swift_2_3 and for Swift 3 you'd pass --toolchain com.apple.dt.toolchain.XcodeDefault.

Closing this due to inactivity. Feel free to reopen if you have any updates on this.