我们正在使用
CocoaPods配置pod’
SwiftyJSON’,’3.1.0’升级到SwiftyJSON Swift 3.
我们收到此错误:
/Users/xxx/Documents/iOS/xxx/Pods/SwiftyJSON/Source/SwiftyJSON.swift:866:33:
Cannot convert return expression of type ‘Int32?’ to return type
‘Int?’
错误在SwiftyJSON.swift的return语句中:
- public var int: Int? {
- get {
- return self.number?.int32Value
- }
- set {
- if let newValue = newValue {
- self.object = NSNumber(value: newValue)
- } else {
- self.object = NSNull()
- }
- }
- }
谁知道问题是什么?这是我们的CocoaPods配置还是使用SwiftyJSON的问题?