首页 > 解决方案 > Carthage 更新失败,“Alamofire.framework”无法打开,因为没有这样的文件 Xcode12GM

问题描述

我尝试使用 Xcode 12 12A7209 构建运行 carthage update Carthage,但出现以下错误。(也尝试了https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323)。有谁知道如何解决它?我已将构建系统设置为旧版构建。

无法写入 /Users/userName/projectName/Carthage/Build/iOS/Alamofire.framework:错误域 = NSCocoaErrorDomain 代码 = 260 “无法打开文件“Alamofire.framework”,因为没有这样的文件。” UserInfo={NSURL=file:///Users/userName/projectName/Carthage/Checkouts/Alamofire/build/ArchiveIntermediates/Alamofire%20iOS/BuildProductsPath/Release-iphoneos/Alamofire.framework, NSFilePath=/Users/userName/projectName/Carthage /Checkouts/Alamofire/build/ArchiveIntermediates/Alamofire iOS/BuildProductsPath/Release-iphoneos/Alamofire.framework,NSUnderlyingError=0x7fc056c8d290 {Error Domain=NSPOSIXErrorDomain Code=2“没有这样的文件或目录”}}

顺便说一句,没有这样的路径“.../ArchiveIntermediates/Alamofire%20iOS/BuildProductsPath/Release-iphoneos/..”,我该如何更正这条路径?非常感谢。

标签: iosalamofirecarthagexcode12

解决方案


Carthage 的 Xcode 12 存在众所周知的问题。您应该继续使用 Xcode 11.7,直到他们发布修复程序或切换到不同的依赖项管理器。


推荐阅读