【发布时间】:2022-01-02 13:35:05
【问题描述】:
我将 xCode 13.1 与 macOS 12.0.1 Monterey 一起使用。我添加了 KingFisher 并将其从我的 pod 中删除。但我的项目不再建了。我的本地 SDK 之一出现此错误:
Failed to build module 'CbSdk';
this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.4
(swiftlang-1205.0.26.9 clang-1205.0.19.55)', while this compiler is 'Apple Swift version 5.5.1
(swiftlang-1300.0.31.4 clang-1300.0.29.6)'). Please select a toolchain which matches the SDK.
我做了什么但没用:
-
pod deintegrate和pod install。 - 通过清除缓存和
DerivedData重新启动xCode。 - 签出旧分支并提交之前的工作。
- 将代码移动到之前工作的另一台 MacBook。
- 下载、安装并选择工具链 5.4(出现奇怪的错误 -> )
- 将我的目标和项目的 swift 编译器语言更改为 swift 4(它表示您再次使用 swift 5.5.1!)
- 请注意,我没有更新 xcode 或 swift!
【问题讨论】:
标签: swift xcode cocoapods conflict