简体   繁体   English

如何回滚到Xcode 6.4,Carthage

[英]How to rollback to Xcode 6.4, Carthage

I download Xcode 6.4 from here http://adcdownload.apple.com/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg . 我从这里下载Xcode 6.4 http://adcdownload.apple.com/Developer_Tools/Xcode_6.4/Xcode_6.4.dmg Then select previous Xcode for build: 然后选择以前的Xcode进行构建:

~ xcode-select -s "/Applications/Xcode_6.4.app/Contents/Developer"

But I can't compile libraries with Carthage . 但我无法用Carthage编译库。 I get error: 我收到错误:

2015-09-18 19:13:58.057 xcodebuild[13961:788602] stream error: stream error at offset 8: unsupported version number ('1.04')

On other computer after Xcode 7 update, the same issue. 在Xcode 7更新后的其他计算机上,同样的问题。 Libraries doesn't compile, but errors is different. 库不能编译,但错误是不同的。

~ carthage version
0.8.0

Cartfile: Cartfile:

github "Alamofire/Alamofire" "1.3.1"

I was getting the same error. 我得到了同样的错误。 I just ran the update command with sudo. 我刚刚用sudo运行了update命令。 Here is the full list of steps that worked for me: 以下是适合我的步骤的完整列表:

  • Renamed Xcode 7.x application to Xcode 7 将Xcode 7.x应用程序重命名为Xcode 7
  • Downloaded Xcode 6.4. 下载Xcode 6.4。
  • Updated Cartfile to: github "Alamofire/Alamofire" "1.3.1" 将Cartfile更新为:github“Alamofire / Alamofire”“1.3.1”
  • Ran the the carthage update with sudo: 使用sudo运行carthage更新:
 sudo carthage update

Terminal's output: 终端输出:

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM