图表库中的编译时错误
Compile time error in Charts library
我已经将 Charts 集成到我的 swift 项目中使用 cocoapods。 pod 安装成功并显示成功消息如下
Analyzing dependencies
Downloading dependencies
Installing Charts (2.2.5)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total
pod installed.
我打开工作区并构建项目,然后在图表库文件中显示一些编译时错误(例如,表达式列表中的预期表达式 ChartAnimator.swift )
然后我尝试通过将 Charts.xcodeproj 拖到我的项目中来添加库。按照教程中给出的步骤进行操作。没有运气同样的错误。
我的Xcode版本是7.2.1
我错过了什么吗?或需要任何其他配置?
提前致谢
您已更新项目以使用此第三方代码的最新版本。
但是这段代码本身使用了更新版本的 Swift 语法,而您的 Xcode 版本无法识别它。
你必须更新 Xcode 并获得最新的稳定版本(在这个答案的时候是 7.3),它与最新版本 Swift 一起提供,才能使用最新版本图书馆的。
我已经将 Charts 集成到我的 swift 项目中使用 cocoapods。 pod 安装成功并显示成功消息如下
Analyzing dependencies
Downloading dependencies
Installing Charts (2.2.5)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total
pod installed.
我打开工作区并构建项目,然后在图表库文件中显示一些编译时错误(例如,表达式列表中的预期表达式 ChartAnimator.swift )
然后我尝试通过将 Charts.xcodeproj 拖到我的项目中来添加库。按照教程中给出的步骤进行操作。没有运气同样的错误。
我的Xcode版本是7.2.1
我错过了什么吗?或需要任何其他配置?
提前致谢
您已更新项目以使用此第三方代码的最新版本。
但是这段代码本身使用了更新版本的 Swift 语法,而您的 Xcode 版本无法识别它。
你必须更新 Xcode 并获得最新的稳定版本(在这个答案的时候是 7.3),它与最新版本 Swift 一起提供,才能使用最新版本图书馆的。