This repository has been archived by the owner on Jul 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
API.swift get "Initializer for conditional binding must have Optional type, not '[Rule]'" error #46
Comments
i delete the if let ,change to let, |
swift convert on xcode9? |
if let parsedObject = Mapper().mapArray(JSONArray: JSONToMap as! [[String : Any]]){ return .success(parsedObject) } |
xcode 9 |
pod update fix this |
JeansHuang/Potatso Work for Xcode9.1 iOS11.1 Swift3.2 |
Updated to support xcode 9.2. Feel free to re-open this issue if you still face the problem. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
i have update to Xcode 9,try compile Potatso and get the error:
Initializer for conditional binding must have Optional type, not '[Rule]'
if (JSONToMap != nil) { if let parsedObject = Mapper<T>().mapArray(JSONArray: JSONToMap as! [[String : Any]]){ return .success(parsedObject) } }
Thanks
The text was updated successfully, but these errors were encountered: