首页 > 解决方案 > carthage build failed for realm-cocoa - 任务失败,退出代码为 65:

问题描述

我知道以前有人问过这个问题,但是那里提供的解决方案都不适合我。

我已经克隆了 nextcloud-ios 应用程序,其中的依赖项由 carthage 管理。当我尝试构建领域可可依赖项时,carthage build realm-cocoa --platform ios --no-use-binaries --cache-builds我收到构建失败消息:

*** No cache found for realm-cocoa, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/60/rmt9jlwd01l3h3srvjnx7r7w0000gn/T/carthage-xcodebuild.u6zLJP.log
*** Building scheme "Realm" in Realm.xcworkspace
*** Building scheme "RealmSwift" in Realm.xcworkspace
Build Failed
    Task failed with exit code 65:
    /usr/bin/xcrun xcodebuild -workspace /Users/manishkungwani/repos/brilcloud-ios/Carthage/Checkouts/realm-cocoa/Carthage/Realm.xcworkspace -scheme RealmSwift -configuration Release -derivedDataPath /Users/manishkungwani/Library/Caches/org.carthage.CarthageKit/DerivedData/10.3_10G8/realm-cocoa/v3.13.1 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/60/rmt9jlwd01l3h3srvjnx7r7w0000gn/T/realm-cocoa SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/manishkungwani/repos/brilcloud-ios/Carthage/Checkouts/realm-cocoa)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/60/rmt9jlwd01l3h3srvjnx7r7w0000gn/T/carthage-xcodebuild.u6zLJP.log

我的系统上有两个版本的 xcode:11.4 和 10.3,并尝试了所有可能的解决方案,例如命令行工具切换到 xcode 10.3,但没有运气。请帮忙。

标签: xcodebuildrealmcarthage

解决方案


推荐阅读