【发布时间】:2017-11-16 09:19:40
【问题描述】:
我的 CocoaPods 工作正常,直到我尝试安装一个新的。
如果我尝试安装一个新的 pod,那么图表 pod 中会出现几个问题,否则它可以正常工作。
我如何解决它?
错误显示如下:
我的 podfile 如下:
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
use_frameworks!
target 'Tranquil' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
# Pods for TranquillocationText
pod 'GooglePlaces'
pod 'UICircularProgressRing'
pod 'Alamofire', '~> 4.0' . //if i try to add this pod then error occurs
pod 'Charts'
end
【问题讨论】:
-
NSAttributedStringKey闻起来有 Swift 4 的味道。虽然您似乎只使用 Swift 3。因此,正如您为 Alamofire 添加'~> 4.0'所做的那样,添加与 Swift 3 兼容的版本。据此:github.com/danielgindi/Charts/releases 应该是标记为3.0.3的版本。
标签: ios swift cocoapods swift4 ios-charts