你做了什么?
- 使用迦太基
- 这是我在 Cartfile 中的命令。github "SwiftyJSON/SwiftyJSON" ~> 4.0
- 在 iOS 12 模拟器上构建项目
你期望会发生什么?
项目应该成功构建。
实际上发生了什么?
项目未成功构建。XCode 显示以下错误。
ld: /Users/xxxxxx/Desktop/Test12/Carthage/Build/iOS/SwiftyJSON.framework/SwiftyJSON compiled with older version of Swift language (4.0) than previous files (unknown ABI version 0x06) file '/Users/xxxxxx/Desktop/Test12/Carthage/Build/iOS/SwiftyJSON.framework/SwiftyJSON' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
环境
列出您正在使用的软件版本:
- iOS版本:12.0
- SwiftyJSON:4.0
- Xcode 版本:10.0 beta 3 (10L201y)
- 斯威夫特版本:4
- 迦太基:0.30.1
在 Github 上用 SwiftyJSON 提出这个问题之前,只是想看看是否有人有类似的问题。