Charts: Xcode 8.3: 62 deprecation warnings

Created on 28 Mar 2017  ·  4Comments  ·  Source: danielgindi/Charts

Xcode 8.3 generates 62 warning when using the Charts 3.0.1 pod. They are all deprecation warnings related to constants. Here are the constants that need replacing for Swift 3.1 compatibility:

'M_PI_2' is deprecated: Please use 'Double.pi / 2' or '.pi / 2' to get the value of correct type and avoid casting.

'DBL_MAX' is deprecated: Please use 'Double.greatestFiniteMagnitude' or '.greatestFiniteMagnitude'.

'DBL_EPSILON' is deprecated: Please use 'Double.ulpOfOne' or '.ulpOfOne'.

Most helpful comment

Thank you all. Pointing the pod to master did the trick. As I had to look up how to do it, here is the modified line from the podfile for anyone else wanting to do so:

pod 'Charts', :git => 'https://github.com/danielgindi/Charts.git'

All 4 comments

please pull the last version you can check last commit https://github.com/danielgindi/Charts/commit/aa2243916790a50e38ebe4cab2314351af5886f4

are you going to make this available via cocoapods?

@petester42 usually manages pods. but you can point it to master in your pod.
https://github.com/danielgindi/Charts/pull/2279 is merged already into master

Thank you all. Pointing the pod to master did the trick. As I had to look up how to do it, here is the modified line from the podfile for anyone else wanting to do so:

pod 'Charts', :git => 'https://github.com/danielgindi/Charts.git'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

coop44483 picture coop44483  ·  3Comments

brytnvmg picture brytnvmg  ·  4Comments

sjdevlin picture sjdevlin  ·  3Comments

guoyutaog picture guoyutaog  ·  3Comments

cilasgimenez picture cilasgimenez  ·  4Comments