Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 . Then select previous Xcode for build:

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

But I can't compile libraries with 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. Libraries doesn't compile, but errors is different.

~ carthage version
0.8.0

Cartfile:

github "Alamofire/Alamofire" "1.3.1"
like image 582
Gralex Avatar asked Sep 27 '22 17:09

Gralex


2 Answers

Resolved with this command: mv ~/Library/Developer ~/Library/Developer_moved

like image 159
Ryang MinHo Avatar answered Oct 08 '22 23:10

Ryang MinHo


I was getting the same error. I just ran the update command with sudo. Here is the full list of steps that worked for me:

  • Renamed Xcode 7.x application to Xcode 7
  • Downloaded Xcode 6.4.
  • Updated Cartfile to: github "Alamofire/Alamofire" "1.3.1"
  • Ran the the carthage update with sudo:
 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
like image 2
Janusz Chudzynski Avatar answered Oct 08 '22 22:10

Janusz Chudzynski