5

我从这里下载 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

购物车文件:

github "Alamofire/Alamofire" "1.3.1"
4

2 回答 2

2

用这个命令解决: mv ~/Library/Developer ~/Library/Developer_moved

于 2015-09-25T20:54:39.370 回答
2

我遇到了同样的错误。我刚刚用 sudo 运行了更新命令。以下是对我有用的完整步骤列表:

  • 将 Xcode 7.x 应用程序重命名为 Xcode 7
  • 已下载 Xcode 6.4。
  • 将 Cartfile 更新为:github "Alamofire/Alamofire" "1.3.1"
  • 使用 sudo 运行 carthage 更新:
 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
于 2015-09-20T02:17:24.713 回答