【问题标题】:Alamofire carthage update not working for Xcode 12 SimulatorAlamofire carthage 更新不适用于 Xcode 12 模拟器
【发布时间】:2021-01-12 02:10:50
【问题描述】:

我为 Alamofire 添加了 Cartfile。 Cartfile 包含:github "Alamofire/Alamofire" ~> 5.2

运行后:carthage update --platform 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 中,但是当我尝试运行该项目时,它没有在模拟器中运行。我可以在设备中运行,但不能在模拟器中运行。

我能做些什么来解决这个问题,一点是 Alamofire 在模拟器中使用 cocoapod 工作,但迦太基出现问题。 谢谢。

我的迦太基版本:0.36.0

Xcode:12.0

Alamofire:“5.2.2”

【问题讨论】:

标签: ios swift alamofire carthage xcode12


【解决方案1】:

目前 Carthage (0.36.0) 不适用于 Xcode 12.0

检查并等待 Carthage 的新版本并进行修复: https://github.com/Carthage/Carthage/releases

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

【讨论】:

    猜你喜欢
    • 2019-05-29
    • 2019-03-10
    • 2013-07-13
    • 2019-03-04
    • 2016-01-21
    • 1970-01-01
    • 1970-01-01
    • 2021-01-13
    • 2017-03-24
    相关资源
    最近更新 更多