Before installing GM Xcode 6.1 the below code is working fine. However after installing Xcode 6.1, I'm getting error:
I tried this, and the error was really nice.
Any idea? I haven't read the release note yet.
Just a guess, but try cleaning the project or wiping your DerivedData
directory.
let x = AFJSONResponseSerializer()
Works fine for me in Xcode 6.1 GM.
Is AFJSONResponseSerializer
in the bridging header btw?
I found a workaround by using explicit casting. Try this code:
let foo = AFJSONResponseSerializer() as AFJSONResponseSerializer
When you put nil you get the data in a format that sent the server, or you will have to strictly specify that you expect to receive
try this code
manager.responseSerializer.acceptableContentTypes = nil
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.