Xcode 7.2 Carthage 업그레이드 문제

2737 단어
Mac OS 10.11.2
Xcode 7.2

carthage 업데이트 중 오류 보고:

/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'
: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/iPhone Simulator9.2를 시도합니다.sdk가 오류를 수정한 후,carthage가 업그레이드되어야 한다는 것을 발견했습니다.

carthage 버전 업그레이드(0.8에서 0.11로 업그레이드)


Carthage 업그레이드/설치를 위한 Homebrew
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

좋은 웹페이지 즐겨찾기