Mac OS 10.11.2
Xcode 7.2
carthage update的時(shí)候報(bào)錯(cuò):
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/sys/cdefs.h:707:2: error: Unsupported architecture
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
.
.
.
/Users/Documents/iOS/iOS-/Carthage/Checkouts/Alamofire/Source/Alamofire.h:23:9: error: could not build module 'Foundation'
<unknown>:0: error: could not build Objective-C module 'Alamofire'
A shell task failed with exit code 65:
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64 /Users/Documents/iOS/iOS-/Carthage/Checkouts/Alamofire/Source/Upload.swift
CompileSwift normal arm64 /Users/Documents/iOS/iOS-/Carthage/Checkouts/Alamofire/Source/ParameterEncoding.swift
CompileSwift normal arm64 /Users/Documents/iOS/iOS-/Carthage/Checkouts/Alamofire/Source/Request.swift
CompileSwift normal arm64 /Users/Documents/iOS/iOS-/Carthage/Checkouts/Alamofire/Source/ResponseSerialization.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(5 failures)
Google之后,嘗試xcode/iPhoneSimulator9.2.sdk修改錯(cuò)誤之后,發(fā)現(xiàn)carthage得升級(jí)。
carthage版本升級(jí)(0.8升級(jí)到0.11)
Homebrew來(lái)升級(jí)/安裝Carthage
carthage version
0.8.0
brew update
error: unable to unlink old '.gitignore' (Permission denied)
error: unable to unlink old '.travis.yml' (Permission denied)
error: unable to unlink old 'CONTRIBUTING.md' (Permission denied)
error: unable to unlink old 'README.md' (Permission denied)
error: unable to unlink old 'SUPPORTERS.md' (Permission denied)
Error: Failure while executing: git pull --ff --no-rebase --quiet origin refs/heads/master:refs/remotes/origin/master
>>>....原諒寶寶吧(☆_☆)
brew install carthage
Warning: carthage-0.8 already installed
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
brew upgrade carthage
==> Upgrading 1 outdated package, with result:
carthage 0.11
==> Upgrading carthage
==> Downloading https://homebrew.bintray.com/bottles/carthage-0.11.el_capitan.bo
######################################################################## 100.0%
==> Pouring carthage-0.11.el_capitan.bottle.tar.gz
?? /usr/local/Cellar/carthage/0.11: 29 files, 11M
carthage version
0.11.0
如果你和一樣悲劇的話,實(shí)在不行把 homebrew 刪除后重裝,或者把carthage刪除后重裝.
刪除后重裝!
刪除后重裝!
哎....原諒寶寶吧(☆_☆)
carthage update
問(wèn)題解決了?。?