【发布时间】: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”
【问题讨论】:
-
github.com/Alamofire/Alamofire/issues/3313 似乎是迦太基问题。它在发行说明中大写:github.com/Carthage/Carthage/releases
-
哦,我明白了。那时真的有问题,只是计划将 carthage 合并到我的项目文件而不是 pod 中。
标签: ios swift alamofire carthage xcode12