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

Swift 4 #2801

Closed
franigam opened this issue Sep 19, 2017 · 9 comments
Closed

Swift 4 #2801

franigam opened this issue Sep 19, 2017 · 9 comments

Comments

@franigam
Copy link

Hi,

Hi, I have 33 errors for the module Charts, is it going to update this project to Swift 4?

Thanks

Check dependencies:

"The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Charts" target."

@mkrivacek
Copy link

Hi,

also there is compilation error:
Cannot convert value of type '[String : AnyObject]?' to expected argument type '[NSAttributedStringKey : Any]?'

for example in ChartUtils.swift, line 132... 136... 141... etc. Total 14 issues.

Thanks for update to Swift 4 :)

@thierryH91200
Copy link
Contributor

please for "The use of Swift 3 @objc inference ....."

this is very simple.......

https://makeapppie.com/2017/09/18/this-old-app-update-to-xcode-9/

@nicoara
Copy link

nicoara commented Sep 20, 2017

I have multiple errors as well.
One of them is "ambigous reference to member 'data' " in ChartDataEntryBase:
if (object! as AnyObject).data !== data && !((object! as AnyObject).data??.isEqual(self.data))!

@nicoara
Copy link

nicoara commented Sep 20, 2017

When will there be a version of Charts for Swift 4?

I just added a new pod to my project and doing pod install triggered the Xcode Swift compiler to interpret the Charts library as Swift 4 and not Swift 3, which it did not do before. So I expect many people to have this problem on Xcode 9 when adding new pods. I have a few errors, one of which I posted, that I would prefer not to handle myself. Thanks

@h-soran
Copy link

h-soran commented Sep 20, 2017

Hi Daniel
Thank you all for the great library.
I am sure you are aware of the lovely Swift 4 issues (18 to be precise) popped out recently. No doubt you are on the case. Just wondering when will we get the updates for your awesome library.
Thanks in advance
chartsissues

@Spiderbezno
Copy link

I have the same problems

@bardonadam
Copy link

Guys, we get it, no need to bump this issue every 10 minutes...

@Visakeswaran
Copy link

Visakeswaran commented Sep 20, 2017

Check out this link, it clearly explains how to get rid of @objc error
https://youtu.be/T7TyB-R_rOk

@liuxuan30
Copy link
Member

swift 4 #2507 has been merged into master. closing.

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

9 participants