I have a problem running an app on iOS 5 which works fine on iOS 4.3. I havnt converted the project to ARC so ARC should be completely disabled and as far as I understood the app should run like it always has with manual reference counting? It is currently crashing after the dealloc method (after [super dealloc] has been called), more precicely it gets a EXC_BAD_ACCESS on this part:
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil); //EXC_BAD_ACCESS
[pool release];
return retVal;
}
I have tried to convert to ARC, but this is currently not possible as a I have third party JSON library which is unsupported. I have tried to put the compiler flag on all the appropriate files:
-fno-objc-arc
However this doesnt make any difference when trying the convert into ARC as the same errors appear as before and furthermore Xcode removes the flags from the files after the failed attempt.
Does anyone know what is going on here? I would assume if ARC is disabled then calls such as release should be fine?