incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amos Hayes (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-274) iOS Cordova Template Project is not compilable with default Apple's ARC compiler 3.0
Date Thu, 05 Apr 2012 20:50:22 GMT

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

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

Sorry.. the verbose version of that is:



Build target Nunaliit

CompileC /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/main.o
Nunaliit/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/ahayes/Documents/XCode/Nunaliit
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings
-O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties
-Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label
-Wno-unused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wno-unknown-pragmas
-Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign
-Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations
-DDEBUG=1, -DCORDOVA_FRAMEWORK=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
-fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.6 -g
-Wno-conversion -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))"
"-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)"
-D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Nunaliit.hmap
-I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Products/Debug-iphonesimulator/include
-I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/DerivedSources/i386
-I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/DerivedSources
-F/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Products/Debug-iphonesimulator
-F/Users/Shared/Cordova/Frameworks -include /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/PrecompiledHeaders/Nunaliit-Prefix-eisyezynitefaofwmwskuwtyvkvn/Nunaliit-Prefix.pch
-MMD -MT dependencies -MF /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/main.d
--serialize-diagnostics /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/main.dia
-c /Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/main.m -o /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/main.o

/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/main.m:31:5: error: 'NSAutoreleasePool' is
unavailable: not available in automatic reference counting mode
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:8:12:
note: declaration has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/main.m:31:34: error: 'NSAutoreleasePool' is
unavailable: not available in automatic reference counting mode
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
                                 ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:8:12:
note: declaration has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
           ^
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/main.m:33:6: error: 'release' is unavailable:
not available in automatic reference counting mode
    [pool release];
     ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:36:1:
note: declaration has been explicitly marked unavailable here
- (oneway void)release NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/main.m:33:6: error: ARC forbids explicit message
send of 'release'
    [pool release];
     ^    ~~~~~~~
4 errors generated.

CompileC /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/AppDelegate.o
Nunaliit/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/ahayes/Documents/XCode/Nunaliit
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings
-O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties
-Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label
-Wno-unused-parameter -Wunused-variable -Wunused-value -Wuninitialized -Wno-unknown-pragmas
-Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wno-shorten-64-to-32 -Wpointer-sign
-Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations
-DDEBUG=1, -DCORDOVA_FRAMEWORK=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk
-fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.6 -g
-Wno-conversion -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))"
"-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)"
-D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Nunaliit.hmap
-I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Products/Debug-iphonesimulator/include
-I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/DerivedSources/i386
-I/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/DerivedSources
-F/Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Products/Debug-iphonesimulator
-F/Users/Shared/Cordova/Frameworks -include /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/PrecompiledHeaders/Nunaliit-Prefix-eisyezynitefaofwmwskuwtyvkvn/Nunaliit-Prefix.pch
-MMD -MT dependencies -MF /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/AppDelegate.d
--serialize-diagnostics /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/AppDelegate.dia
-c /Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m -o /Users/ahayes/Library/Developer/Xcode/DerivedData/Nunaliit-hcfnnhmjvpggzgaznrjynjhuzxki/Build/Intermediates/Nunaliit.build/Debug-iphonesimulator/Nunaliit.build/Objects-normal/i386/AppDelegate.o

/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m:52:6: warning: 'registerPGHttpURLProtocol'
is deprecated: Renamed - use registerUrlProtocol instead. [-Wdeprecated-declarations]
    [CDVURLProtocol registerPGHttpURLProtocol];
     ^
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m:71:20: error: 'autorelease'
is unavailable: not available in automatic reference counting mode
    self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease];
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:37:1:
note: declaration has been explicitly marked unavailable here
- (id)autorelease NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m:71:20: error: ARC forbids
explicit message send of 'autorelease'
    self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease];
                   ^                                             ~~~~~~~~~~~
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m:76:28: error: 'autorelease'
is unavailable: not available in automatic reference counting mode
    self.viewController = [[[MainViewController alloc] init] autorelease];
                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:37:1:
note: declaration has been explicitly marked unavailable here
- (id)autorelease NS_AUTOMATED_REFCOUNT_UNAVAILABLE;
^
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m:76:28: error: ARC forbids
explicit message send of 'autorelease'
    self.viewController = [[[MainViewController alloc] init] autorelease];
                           ^                                 ~~~~~~~~~~~
/Users/ahayes/Documents/XCode/Nunaliit/Nunaliit/Classes/AppDelegate.m:134:3: error: ARC forbids
explicit message send of 'dealloc'
        [super dealloc];
         ^     ~~~~~~~
1 warning and 5 errors generated.

                
> 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

       

Mime
View raw message