Closed zoltansebestyen closed 6 years ago
That's not the latest version of Charts. All of these errors are correct in 3.0.4. I'm guessing you need to update your cocoa pods.
Are you sure? I cleaned up my local cocapods installation (rm -fr ~/.cocoapods/repos/master; pod setup
), explicitly set Charts version to '3.0.4', and still getting the same errors. Actually pod install
after the cocoapod update stated that Installing Charts 3.0.4 (was 3.0.4)
.
I remember that 3.0.4 does not address some syntax change for swift 4.0.3. Try master?
If that's the case we should really push an update to the pod. Cloning the repo, there are no issues.
Ok, sorted out: I had to set Swift language version to 4.0 for Charts at Pods->Charts->Build Settings->Swift Language Version. Setting Swift language version to 4.0 at project level wasn't enough. :/
@jjatie you mean we push current master into pod? master is kind of WIP, but should be fine.
@liuxuan30 Yea. Let's get the last few More Swift into Master PRs done, bump the version to 3.0.5, and push the master to pod.
3.0.5 got the same error either
can't be. I already pushed:
- 3.0.4 (2017-09-22 03:08:18 UTC)
- 3.0.5 (2018-01-08 02:33:37 UTC)
For the record: the original root cause was Swift version not set to 4.0, see my earlier comment
Hi,
I'm trying to use Charts in a project with Xcode 9 / Swift 4, but when building the project - no code yet, just skeleton with Pods - it fails with the errors below. I looked up the project issues, but couldn't find similar one, that's why I created a new one.
My Podfile looks like:
and I've got the following errors:
Do you have some suggestion to resolve the issue?
Thanks,
Zoltan