sxg / ForecastIO

A Swift library for the Forecast.io Dark Sky API
MIT License
159 stars 27 forks source link

Forecast.swift: Unable to bridge NSNumber to Float. #49

Closed swiftdesginer0 closed 6 years ago

swiftdesginer0 commented 6 years ago

When the public init(fromJSON json: NSDictionary) (line 68) is called and it attempts to bridge the type NSNumber to Float, it causes a fatal error. I am running it with Swift 4 with iOS 11.3 and Xcode beta 9.3. Has anybody heard of this issue?

joeljfischer commented 6 years ago

I'm getting it on Xcode 9.3 final. It's an easy fix, change Floats to Doubles.

joeljfischer commented 6 years ago

See #50

sxg commented 6 years ago

This is fixed in the 4.1.0 release thanks to @joeljfischer and #50. Thanks!