2016-06-16 24 views
9

Çerçeveler oluşturmak için kullanılan Carthage Swift versiyonunu değiştirmek mümkün mü?Kartela Değiştir Swift version

Projemi 3'e (Xcode 8 beta üzerinde) geçirmeye çalışıyorum ve üçüncü taraf kitaplıkları, projemi derlemeyi durduran tek şey. 3. adım için belirli dalları kullanırken, Carthage yeni Swift sözdizimi ile ilgili hatalar atar.

Herhangi bir yardım için teşekkür ederiz!

cevap

19

Carthage, çerçeveler oluşturmak için xcodebuild komut satırı aracını kullanır. Komut satırı sistemi tarafından kullanılan Xcode sürümü aracı O Geliştiriciler için SDK dizinine işaret etmek gerekiyor 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 

tarafından seçilen değeri tarafından belirlenir, bu nedenle şu anda işaret nerede kontrol etmek --print-path kullanabilirsiniz.

xcode-select --print-path 
/Applications/Xcode.app/Contents/Developer 

O zaman sadece sudo xcode-select --switch <path-to-beta-xcode>/Contents/Developer

+1

Ayrıca bu Xcode> Tercihler> Konumları ardından "Komut Satırı kullanarak değiştirebilir Onların repo o sayının iplik takip etmek isteyebilirsiniz Araçlar" –