Swift ErrorswiftiOS

升级Xcode 7.2 Carthage的问题

2015-12-10  本文已影响3925人  NoExcuse

Mac OS 10.11.2

Xcode 7.2


carthage update的时候报错:

/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修改错误之后,发现carthage得升级。


carthage版本升级(0.8升级到0.11)

Homebrew来升级/安装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

如果你和一样悲剧的话,实在不行把 homebrew 删除后重装,或者把carthage删除后重装.
删除后重装!
删除后重装!
哎....原谅宝宝吧(☆_☆)

carthage update
问题解决了!!

see

上一篇下一篇

猜你喜欢

热点阅读