Search code examples
iosxcodeswiftafnetworking-2

Swift: GM Xcode 6.1 And AFNetworking AFJSONResponseSerializer


Before installing GM Xcode 6.1 the below code is working fine. However after installing Xcode 6.1, I'm getting error:

enter image description here

I tried this, and the error was really nice. enter image description here

Any idea? I haven't read the release note yet.


Solution

  • 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?