You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Amos Hayes (Commented) (JIRA)" <ji...@apache.org> on 2012/04/05 22:48:22 UTC

[jira] [Commented] (CB-274) iOS Cordova Template Project is not compilable with default Apple's ARC compiler 3.0

    [ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247652#comment-13247652 ] 

Amos Hayes commented on CB-274:
-------------------------------

FYI, with XCode 4.3.2 on a fresh Lion system with a fresh Cordova project from the master from today (is this the relevant number? 1.5.0-75-g23b3a22) I get:

Nunaliit project Group
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit.xcodeproj
Update to recommended settings
Nunaliit Group
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/main.m
'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
'release' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'release'
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m
'registerPGHttpURLProtocol' is deprecated: Renamed - use registerUrlProtocol instead.
'autorelease' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'autorelease'
'autorelease' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'autorelease'
ARC forbids explicit message send of 'dealloc'


It also wants me to update from an ARMV6 assembler codegen setting of THUMB to ARM.

Just thought I would toss this in here as I understand the plan is to move to the Apple compiler.
                
> iOS Cordova Template Project is not compilable with default Apple's ARC compiler 3.0
> ------------------------------------------------------------------------------------
>
>                 Key: CB-274
>                 URL: https://issues.apache.org/jira/browse/CB-274
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.4.0
>         Environment: Mac OSX 10.7 XCode 4.2
>            Reporter: Oleg Gryb
>            Assignee: Shazron Abdullah
>             Fix For: 1.7.0
>
>
> 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];

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira