Request failed: unacceptable content-type: text/html using AFNetworking 2.0

I’m trying out the new version 2.0 of AFNetworking and I’m getting the error above. Any idea why this is happening? Here’s my code: NSURL *URL = [NSURL URLWithString:kJSONlink]; NSURLRequest *request = [NSURLRequest requestWithURL:URL]; AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc] initWithRequest:request]; op.responseSerializer = [AFJSONResponseSerializer serializer]; [op setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) { NSLog(@”JSON: %@”, responseObject); } failure:^(AFHTTPRequestOperation … Read more

‘Project Name’ was compiled with optimization – stepping may behave oddly; variables may not be available

Trying to step into AFNetworking code generates following warning: [Project Name] was compiled with optimization – stepping may behave oddly; variables may not be available. And of course I’m not able to debug the code. To be specific I’m trying to debug UIImageView+AFNetworking category which seems impossible. Changing the code has no effect (tried NSLog, … Read more