2017-05-07 31 views
1

我已經安裝了2個版本的Xcode,8.3.2和8.2.1。迦太基更新 - 任務失敗,退出代碼65

我的工作是寫在斯威夫特2和安裝迦太基通過一些第三方的項目。 拉分支我做carthage update後:然後我得到這個錯誤:

$ carthage update 
*** Fetching SwiftyJSON 
*** Fetching Alamofire 
*** Fetching Reachability.swift 
*** Fetching AlamofireImage 
*** Checking out Alamofire at "3.5.1" 
*** Checking out AlamofireImage at "2.5.0" 
*** Checking out Reachability.swift at "v2.4" 
*** Checking out SwiftyJSON at "54017d514a87b2b855b407131292c510cdeb65f8" 
*** xcodebuild output can be found in /var/folders/6s/5fm277hs03qb526nqykyplk40000gn/T/carthage-xcodebuild.JxFgDC.log 
*** Building scheme "Alamofire watchOS" in Alamofire.xcworkspace 
Build Failed 
    Task failed with exit code 65: 
    /usr/bin/xcrun xcodebuild -workspace /Users/maor/myProj/myProj/Carthage/Checkouts/Alamofire/Alamofire.xcworkspace -scheme Alamofire\ watchOS -configuration Release -derivedDataPath /Users/maor/Library/Caches/org.carthage.CarthageKit/DerivedData/Alamofire/3.5.1 -sdk watchos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build 

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/6s/5fm277hs03qb526nqykyplk40000gn/T/carthage-xcodebuild.JxFgDC.log 

part of carthage-xcodebuild.JxFgDC.log

=== CLEAN TARGET Alamofire watchOS OF PROJECT Alamofire WITH CONFIGURATION Release === 

Check dependencies 
「Swift Language Version」 (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly. 

** CLEAN FAILED ** 


The following build commands failed: 
    Check dependencies 
(1 failure) 
=== BUILD TARGET Alamofire watchOS OF PROJECT Alamofire WITH CONFIGURATION Release === 

Check dependencies 
「Swift Language Version」 (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly. 

** BUILD FAILED ** 


The following build commands failed: 
    Check dependencies 
(1 failure) 

回答

0

最後,在刪除Xcode 8.3.2之後解決的問題

+0

嗨,有什麼用Xcode的問題8.3.2?這是現在最新的Xcoder版本。 –

+0

@vietstone我想問題是兩個Xcode的安裝..也許有什麼問題的路徑..卸載後的8.3.2它解決了。 – Maor

0

假設這是你拉的變化到新設備:運行carthage bootstrap根據安裝docs

+0

同樣的問題.... – Maor

1

如果你安裝了Xcode中的兩個版本,你可以做列表: EXCUTE殼:Xcode中,選擇S(您xcode.app的路徑)

+0

事實證明,這對我來說是關鍵。使用最近安裝的新版本的Xcode,我需要確保'xcode-select'指向正確的工具鏈。謝謝! – RonDiamond