Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 迦太基更新-任务失败,退出代码为65_Ios_Swift_Alamofire_Carthage - Fatal编程技术网

Ios 迦太基更新-任务失败,退出代码为65

Ios 迦太基更新-任务失败,退出代码为65,ios,swift,alamofire,carthage,Ios,Swift,Alamofire,Carthage,我安装了两个版本的Xcode,分别是8.3.2和8.2.1 我正在做一个用Swift 2编写的项目,通过迦太基安装了一些第三方的。 拔出分支后,我进行了迦太基更新:然后我得到了这个错误: $ carthage update *** Fetching SwiftyJSON *** Fetching Alamofire *** Fetching Reachability.swift *** Fetching AlamofireImage *** Checking out Alamofire at "

我安装了两个版本的Xcode,分别是8.3.2和8.2.1

我正在做一个用Swift 2编写的项目,通过迦太基安装了一些第三方的。 拔出分支后,我进行了迦太基更新:然后我得到了这个错误:

$ 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

carthage-xcodebuild.JxFgDC.log的一部分


假设这是一个新设备,您正在将更改拉到:运行迦太基引导程序,根据安装程序进行安装。最后,在删除Xcode 8.3.2后,问题解决了。如果您安装了两个版本的Xcode,您可以按列表执行:
excute shell:xcode select-s(你的xcode.app的路径)

它可能是你想要使用的cocoapods库的版本,它与你的xcode版本不兼容,所以一定要给出库的版本。例如:
github“danielgindi/Charts
”到
github“danielgindi/Charts”~>3.2.1

我在更新迦太基时遇到了同样的问题

Build Failed
Task failed with exit code 65: ..... This usually indicates that the project itself failed to compile. Please check the xcode build log for more details: /var/folders/np/1zqyzhbn4ljcb8fmdkz5y90h0000gq/T/carthage-xcodebuild.WE9DXB.log

这是因为指向命令行工具的Xcode版本不正确。我更新了版本,问题已经解决。您可以从Xcode首选项更改它,这样您就可以在计算机中保留多个Xcode

在尝试为下载的演示项目导入内容后,出现了相同的错误。构建失败,因为在尝试在终端中执行carthage update命令之前,我没有在Xcode项目中设置任何有效的签名标识。

Hi,Xcode 8.3.2有什么问题?现在是最新的Xcode版本。@vietstone我想问题是安装了两个Xcode。。也许路径出了问题。。卸载8.3.2后,问题解决了。这对我来说是关键。对于最近安装的新版本Xcode,我需要确保
Xcode-select
指向正确的工具链。非常感谢。
Build Failed
Task failed with exit code 65: ..... This usually indicates that the project itself failed to compile. Please check the xcode build log for more details: /var/folders/np/1zqyzhbn4ljcb8fmdkz5y90h0000gq/T/carthage-xcodebuild.WE9DXB.log