Carthage utilizza lo strumento da riga di comando xcodebuild
per creare i framework. La versione di Xcode utilizzata dal sistema riga di comando è determinato dal valore selezionato dallo strumento xcode-select
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
Ha bisogno di puntare alla directory Developer SDK, in modo da poter utilizzare --print-path
per controllare dove sta attualmente puntando.
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
Poi per cambiare semplicemente eseguito sudo xcode-select --switch <path-to-beta-xcode>/Contents/Developer
si può anche cambiare questo using Xcode> Preferenze> Locali, quindi "riga di comando Utensili" –