How to select Swift toolchains when building with Carthage

天大地大妈咪最大 提交于 2019-12-01 11:28:56

As of Carthage 0.17 there is an option --toolchain that allows one to specify an exact toolchain ID to use for the build. Example usage:

carthage update --toolchain org.swift.402017072a

The ID of the toolchain comes from the key CFBundleIdentifier in Info.plist file of the toolchain.

I solved this by using the command sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/ or similar, thereby setting the toolchain to the proper one. This will then be the default one used by Carthage. I could not figure out how to select another toolchain when running Carthage.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!