Alamofire迦太基更新不适用于Xcode 12 Simulator

问题描述

我为Alamofire添加了Cartfile。 Cartfile包含:github“ Alamofire / Alamofire”〜> 5.2

运行后:迦太基更新-平台iOS

给予: 建立失败 任务失败,退出代码为1: / usr / bin / xcrun lipo -create / Users / /Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/Alamofire/5.2.2/Build/Intermediates.noindex/ArchiveIntermediates/Alamofire \ iOS / IntermediateBuildFilesPath / UninstalledProducts / iphoneos / Alamofire.framework / Alamofire / Users / /Library/Caches/org.carthage.CarthageKit/DerivedData/12.0_12A7209/Alamofire/5.2.2/Build/Products/ Release-iphonesimulator / Alamofire.framework / Alamofire -output / Users / **** / Desktop / untitled / Carthage / Build / iOS / Alamofire.framework / Alamofire

这通常表示项目本身无法编译。请检查xcodebuild日志...

生成了构建框架文件,可以将其拖动到Project Embedded Framework中,但是当我尝试运行该项目时,它不在Simulator中运行。我可以在设备上运行,但不能在模拟器上运行。

enter image description here

我能做些什么来解决这个问题,有一点是Alamofire正在使用Cocoapod在Simulator中工作,但是迦太基发生了问题。 谢谢。

我的迦太基版本:0.36.0

Xcode:12.0

Alamofire:“ 5.2.2”

解决方法

当前迦太基(0.36.0)无法与Xcode 12.0一起使用

检查并等待带有修复的新版本的迦太基: https://github.com/Carthage/Carthage/releases

,或者您可以使用以下解决方法: https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md