line 59 of AFHTTPRequestOperation.m complains of Implicit conversion of C pointer type 'void *' to Objective-C pointer type 'id'.
Should read (I think)
IMP implementation = imp_implementationWithBlock((__bridge id)(block));
Fixed compiler error in AFHTTPRequestOperation; #417
Casting (void *) block to (__bridge id). Required as of Xcode 4.4
Repair compilation on Xcode < 4.5. (#417)
Unfortunately, the previous fix breaks compilation on Xcode 4.4, which we still must use for app submissions. The root cause is that Apple changed the signature of imp_implementationWithBlock in the iOS 6.0 SDK.
Xcode 4.5 can now be used to submit apps, but perhaps Xcode 4.4 should still be supported.
@sjmadsen Does your fix work with both Xcode 4.4 and Xcode 4.5?
I think this will work:
#define BLOCKTYPE id
#define BLOCKTYPE __bridge void *
Then cast to BLOCKTYPE.
__bridge void *
I did this in my code here:
[#417] Fixing compilation error in Xcode 4.5
Thanks for the tip, @tewha. I've managed to get everything working in 4.4 and 4.5 in c8d9f79.
I like that you've managed to contain this to your .m files. This is the sort of thing you really don't want to be offering to others to use.