通常我使用 Pods 来安装依赖项,但最近我得到了一个项目,它使用了 carthage。现在我正在尝试使用以下命令安装 carthage 并出现错误。(我已经安装了迦太基设置)
carthage update --platform iOS
在终端上点击此命令后出现以下错误。
Skipped installing realm-cocoa binary due to the error:
"Incompatible Swift version - framework was built with 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) and the local version is 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)."
我有 Xcode 版本 12.5.1 (12E507) 和 macOS BigSur 版本 11.5.2
即使我尝试使用不同的 mac OS 版本,我也不想降级 mac OS。我已经尝试为领域更改购物车文件中的版本。
如果有人可以提供帮助,请提前致谢。