We are upgrading to SwiftyJSON Swift 3 with the CocoaPods pod 'SwiftyJSON', '3.1.0' configuration pod 'SwiftyJSON', '3.1.0' .
We get this error:
/Users/xxx/Documents/iOS/xxx/Pods/SwiftyJSON/Source/SwiftyJSON.swift:866:33: Unable to convert return expression of type 'Int32?' return type "int?
Error in return statement in SwiftyJSON.swift:
public var int: Int? { get { return self.number?.int32Value } set { if let newValue = newValue { self.object = NSNumber(value: newValue) } else { self.object = NSNull() } } }
Does anyone know what the problem is? Is this a problem with our CocoaPods configuration or with SwiftyJSON?
swift3 cocoapods swifty-json
Marcus leon
source share