ios - 无法在 iOS 12 上使用 SwiftyJSON 构建项目
问题描述
你做了什么?
- 使用迦太基
- 这是我在 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 提出这个问题之前,只是想看看是否有人有类似的问题。
解决方案
To whoever checking this post, I resolved this by doing the below 3 things:
Changed the command line tools version to Xcode 10
Changed the Swift version on Build Settings to 4.2
Deleted the carthage folders and ran 'carthage update' once again.
推荐阅读
- excel - Excel VBA在数字字符串中添加零
- algorithm - 在其并集是整个图的图中找到大小相等的互斥完整子图
- r - R Shiny App HighCharter OHLC/Candlesticks 默认缩放周期
- java - string.replace() 中预期的变量
- matlab - 在 Matlab 和 Julia 中读取二进制文件时的不同输出
- angular - 如何测试在其他函数中调用的异步函数?
- c++ - .exe 不能在路径中使用多个“../”实例运行
- r - 使用 tidyverse 将数据拆分为列表并在每个列表中进行操作
- r - 在ggplot散点图中拟合两条线
- python - 如何矢量化 2 列之间的 Pandas 比较