Compile time error in Charts library

。_饼干妹妹 提交于 2020-01-06 03:22:18

问题


I have integrated Charts into my swift project usind cocoapods. pod installation was successful and shows succes message as below

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.

The I opened my workspace and build the project then shows some compile time error in charts libary files (eg like, Expected expression in list of expressions in ChartAnimator.swift)

Then I tried to add the libary by dragging the Charts.xcodeproj to my project. Followed the steps given in the tutorial. No Luck same error comes in.

My Xcode version is Version 7.2.1

Am I missing something? or any additional configuration needed?

Thanks in advance


回答1:


You have updated your project to use the latest version of this third-party code.

But this code uses itself a more recent version of the Swift syntax, and your Xcode version doesn't recognize it.

You have to update Xcode and get the latest stable version (7.3 at the time of this answer), which comes with the latest version of Swift, in order to use the latest version of the library.



来源:https://stackoverflow.com/questions/37859249/compile-time-error-in-charts-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!