0
我想在Objective-C Project中使用UberRides
SDK。我檢查了目標c的pod,但它不可用。所以我試了Carthage
。UberRides Carthage問題
這裏是我的Cartfile
:
# UberRides
github "https://github.com/uber/rides-ios-sdk" ~> 0.5
我用carthage update --platform iOS
這個命令來安裝,我使用的Xcode 8.但是,一些安裝後,我得到了一些錯誤,我不知道如何處理,所以請幫我。
這裏是日誌終端:
*** Fetching rides-ios-sdk
*** Fetching ObjectMapper
*** Checking out ObjectMapper at "1.5.0"
*** Downloading rides-ios-sdk.framework binary at "v0.5.2"
*** Checking out rides-ios-sdk at "v0.5.2"
*** xcodebuild output can be found in /var/folders/mt/_rpb6s913b54yl1gfk0dt2qh0000gn/T/carthage-xcodebuild.orgg88.log
*** Building scheme "ObjectMapper-iOS" in ObjectMapper.xcworkspace
*** Building scheme "UberRides" in UberRides.xcodeproj
** CLEAN FAILED **
The following build commands failed:
Check dependencies
(1 failure)
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
A shell task (/usr/bin/xcrun xcodebuild -project /Users/jayesh/Desktop/CarthageDemo/Carthage/Checkouts/rides-ios-sdk/source/UberRides.xcodeproj -scheme UberRides -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
** CLEAN FAILED **
The following build commands failed:
Check dependencies
(1 failure)
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
感謝您的回覆,但我使用xcode 8進行開發,並使用舊的swift版本獲取錯誤。 –
Xcode 8不支持Swift 2.2,你需要使用Swift 2.3。或者,如果您仍然安裝了Xcode 7(或從Apple開發人員站點下載),則可以通過「xcode-select -s/path/to/xcode7.app/Contents/Developer」命令設置要使用的Xcode –