我从这里下载Xcode 6.4 http://adcdownload.apple.com/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg。然后选择以前的Xcode进行构建:
~ xcode-select -s "/Applications/Xcode_6.4.app/Contents/Developer"
但我无法使用Carthage
编译库。我收到错误:
2015-09-18 19:13:58.057 xcodebuild[13961:788602] stream error: stream error at offset 8: unsupported version number ('1.04')
在Xcode 7更新后的其他计算机上,同样的问题。库不编译,但错误不同。
~ carthage version
0.8.0
Cartfile:
github "Alamofire/Alamofire" "1.3.1"
答案 0 :(得分:2)
我得到了同样的错误。我刚刚用sudo运行了update命令。以下是对我有用的完整步骤列表:
sudo carthage update
终端的输出:
Januszs-Mac-mini: janusz$ sudo carthage update
Password:
*** Fetching Alamofire
*** Checking out Alamofire at "1.3.1"
*** xcodebuild output can be found in /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/...
*** Building scheme "Alamofire OSX" in Alamofire.xcworkspace
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
答案 1 :(得分:2)
使用此命令解决: mv~ / Library / Developer~ / Library / Developer_moved