Ios 更改迦太基Swift版本
是否有可能更改用于构建框架的迦太基Swift版本 我正在尝试将我的项目迁移到swift 3(在Xcode 8 beta上),而第三方库是唯一阻止我的项目编译的东西。 在使用swift 3的特定分支时,迦太基抛出了有关新swift语法的错误Ios 更改迦太基Swift版本,ios,swift,carthage,swift3,xcode8,Ios,Swift,Carthage,Swift3,Xcode8,是否有可能更改用于构建框架的迦太基Swift版本 我正在尝试将我的项目迁移到swift 3(在Xcode 8 beta上),而第三方库是唯一阻止我的项目编译的东西。 在使用swift 3的特定分支时,迦太基抛出了有关新swift语法的错误 任何帮助都将不胜感激 迦太基使用命令行工具xcodebuild构建框架。命令行系统使用的Xcode版本由工具选择的值决定 Usage: xcode-select [options] Print or change the path to the active
任何帮助都将不胜感激 迦太基使用命令行工具
xcodebuild
构建框架。命令行系统使用的Xcode版本由工具选择的值决定
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
然后要更改它,只需运行
sudoxcode选择--switch/Contents/Developer
在迦太基的GitHub上有一个关于xcode 8和破坏兼容性的错误报告。您可能希望在回购协议中遵循该问题的思路:
迦太基回购协议中的另一个相关报告问题是:您也可以使用Xcode>Preferences>Locations来更改它,然后“命令行工具”最新的Xcode版本支持多个Swift工具链。在使用相同的Xcode版本时,我如何选择Swift版本?这并没有回答如何选择Swift版本的问题See@jonahb的可能副本这个问题是在大约3年前提出的,并且已经得到了回答:)(此外,这个问题比您列出的问题要老)作为对已接受答案的评论指出,这个回答“没有回答如何选择Swift版本的问题。”我链接到的页面回答了这个问题。
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer