I am having the above error on every file in my Xcode 8.2 project (swift 3) that require JSON or JSONEncoding. I already have SwiftyJSON in my pod files and imported it in those files. I already added it in the list of dependancies and links.
here's and import example
and an error example
Any help to solve this issue would be greatly appreciated
here are more examples from different swift files
that is Easy. just do this and Run it...
import Alamofire
import SwiftyJSON
and Replace
JSON?
toJSON
that it..
try this
if responseObject.result.isSuccess { let resJson = JSON(responseObject.result.value!) success(resJson) } if responseObject.result.isFailure { let error : Error = responseObject.result.error! failure(error) }