Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4.0
-
None
-
Mac OSX 10.7 XCode 4.2
Description
The default and recommended compiler on Mac is Apple's LLVM 3.0 and this is the only one that supports ARC, however PhoneGap uses GCC LVM 4.2 and when I tried to change the compiler to Apple's, I got syntax errors. I've changed the PhoneGap code as described below, but I'm not sure if it will affect anything:
AppDelegate.m
// self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease];
self.window = [[UIWindow alloc] initWithFrame:screenBounds];
...
// self.viewController = [[[MainViewController alloc] init] autorelease];
self.viewController = [[MainViewController alloc] init];
...
- (void) dealloc
{
// [super dealloc];
}
main.m
// NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");
// [pool release];
Attachments
Issue Links
- is depended upon by
-
CB-1170 Update Upgrading Guide for ARC migration
- Closed