简体   繁体   English

Alamofire carthage 更新不适用于 Xcode 12 Simulator

[英]Alamofire carthage update not working for Xcode 12 Simulator

I have added Cartfile for Alamofire.我为 Alamofire 添加了 Cartfile。 Cartfile contains: github "Alamofire/Alamofire" ~> 5.2 Cartfile 包含:github "Alamofire/Alamofire" ~> 5.2

After I run: carthage update --platform iOS运行后: carthage update --platform iOS

giving: Build Failed Task failed with exit code 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给出:构建失败任务失败,退出代码为 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/Rephone /Alamofire.framework/Alamofire -output /Users/****/Desktop/untitled/Carthage/Build/iOS/Alamofire.framework/Alamofire

This usually indicates that project itself failed to compile.这通常表示项目本身未能编译。 Please check the xcodebuild log...请检查 xcodebuild 日志...

The build framework file is generated and I can drag that to Project embedded Framework, but when I am trying to run the project its not running in Simulator.生成了构建框架文件,我可以将其拖到 Project 嵌入式框架中,但是当我尝试运行该项目时,它没有在 Simulator 中运行。 I can run in device, but not simulator.我可以在设备中运行,但不能在模拟器中运行。

在此处输入图片说明

What can I do to solve this, One point is Alamofire is working in Simulator with cocoapod, but problem is occurring with carthage.我能做些什么来解决这个问题,有一点是 Alamofire 正在使用 cocoapod 在模拟器中工作,但是迦太基出现了问题。 Thank you.谢谢你。

My carthage version: 0.36.0我的迦太基版本:0.36.0

Xcode: 12.0代码:12.0

Alamofire: "5.2.2"阿拉莫菲尔:“5.2.2”

Currently Carthage (0.36.0) not working with Xcode 12.0目前 Carthage (0.36.0) 不适用于 Xcode 12.0

check and wait a new version for Carthage with fix : https://github.com/Carthage/Carthage/releases检查并等待 Carthage 的新版本修复: https : //github.com/Carthage/Carthage/releases

or you can use this workaround : https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md或者您可以使用此解决方法: https : //github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM