Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on newest ChartsDemo-iOS project #3373

Closed
1 task done
JCMcLovin opened this issue Apr 1, 2018 · 3 comments
Closed
1 task done

Compile error on newest ChartsDemo-iOS project #3373

JCMcLovin opened this issue Apr 1, 2018 · 3 comments

Comments

@JCMcLovin
Copy link
Contributor

JCMcLovin commented Apr 1, 2018

What did you do?

I downloaded the latest version of the library (4.1) and attempted to run the ChartsDemo-iOS-Swift project.

What did you expect to happen?

I expected it to build and run.

What happened instead?

I got a compile error. In DataApproximator+N.swift, Xcode complains about the func reduceWithDouglasPeukerN(_ points: [CGPoint], resultCount: Int) -> [CGPoint] saying:

Value of type 'EnumeratedSequence<[CGPoint]>' has no member 'compactMap'

Charts Environment

Charts version/Branch/Commit Number: 4.1/Master/#3370
Xcode version: 9.2
Swift version: 4.0.3
Platform(s) running Charts: iOS 11.2
macOS version running Xcode: High Sierra 10.13.3

Demo Project

https://github.com/danielgindi/Charts/tree/master/ChartsDemo-iOS

@thierryH91200
Copy link
Contributor

see #3372
try with
Xcode version : 9.3
Swift version: 4.1

@liuxuan30
Copy link
Member

it's done.

 - 3.1.1 (2018-04-03 01:22:23 UTC)

@suhaspathak
Copy link

It's not support Xcode 9.2. need to update Xcode version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants