我有一个在Xcode9中构建的项目。 现在,我将其更新为Xcode10。 我正在使用RingCentral iOS SDK。
但是,每当我更新SDK时,都会显示此错误: 我尝试了几乎所有用于清理和构建派生数据的方法
迦太基版本= 0.32.0
Xcode版本= 10.1
请帮助,我被困住了,无法运行项目
carthage update --platform iOS
*** Fetching ringcentral-swift
*** Fetching CryptoSwift
*** Fetching objective-c
*** Fetching Alamofire
*** Fetching ObjectMapper
*** Checking out ObjectMapper at "3.4.2"
*** Checking out Alamofire at "4.8.1"
*** Checking out ringcentral-swift at "1.0.1"
*** Checking out CryptoSwift at "0.14.0"
*** Checking out objective-c at "v4.8.5"
*** xcodebuild output can be found in /var/folders/49/ckkpnf9n6lgbfsfp407twf840000gn/T/carthage-xcodebuild.gTqjHT.log
*** Building scheme "Alamofire iOS" in Alamofire.xcworkspace
*** Building scheme "CryptoSwift" in CryptoSwift.xcworkspace
*** Building scheme "Framework (iOS)" in PubNub.xcworkspace
*** Building scheme "ObjectMapper-iOS" in ObjectMapper.xcworkspace
*** Building scheme "RingCentral_iOS" in RingCentral.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/xxxxxxxxx/Downloads/MyFax\ /Carthage/Checkouts/ringcentral-swift/RingCentral.xcodeproj -scheme RingCentral_iOS -configuration Release -derivedDataPath /Users/xxxxxxxxx/Library/Caches/org.carthage.CarthageKit/DerivedData/10.1_10B61/ringcentral-swift/1.0.1 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/49/ckkpnf9n6lgbfsfp407twf840000gn/T/ringcentral-swift SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/xxxxxxxxx/Downloads/MyFax /Carthage/Checkouts/ringcentral-swift)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/49/ckkpnf9n6lgbfsfp407twf840000gn/T/carthage-xcodebuild.gTqjHT.log
答案 0 :(得分:2)
如果有人遇到有关Cartage更新的问题。
您可以按照简单的步骤
1-下载其存储库,并以最新的xcode打开其Xcode项目。
2-使用Xcode上的通用iOS设备构建项目。
3-如果链接的框架中有任何错误->对错误框架重复步骤1
4-如果构建成功,则在Products文件夹中,您将看到框架文件
5- Ctrl +单击(右键单击),然后选择在取景器中显示
6-复制框架文件
7-转到使用迦太基的项目目录
8-打开/ YourProjectDirectory / Carthage / Build / iOS文件夹
9-粘贴您在第4步中生成的框架文件
10-现在构建您的项目,它应该可以工作
快乐编码:)