You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Oleg Gryb (Created) (JIRA)" <ji...@apache.org> on 2012/02/22 18:27:48 UTC
[jira] [Created] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
iOS PhoneGap 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
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
[jira] [Resolved] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah resolved CB-274.
---------------------------------
Resolution: Fixed
ARC branch merged in. Fix commits: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/1eb3c2cb
> 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 Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.4.0
> Environment: Mac OSX 10.7 XCode 4.2
> Reporter: Oleg Gryb
> Assignee: Becky Gibson
> Fix For: 2.1.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
[jira] [Assigned] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah reassigned CB-274:
-----------------------------------
Assignee: Becky Gibson (was: Shazron Abdullah)
> 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 Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.4.0
> Environment: Mac OSX 10.7 XCode 4.2
> Reporter: Oleg Gryb
> Assignee: Becky Gibson
> Fix For: 2.1.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
[jira] [Commented] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261020#comment-13261020 ]
Shazron Abdullah commented on CB-274:
-------------------------------------
{code}
#if __has_feature(objc_arc)
#else
#endif
{code}
> 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
[jira] [Commented] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Amos Hayes (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Amos Hayes (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223687#comment-13223687 ]
Shazron Abdullah commented on CB-274:
-------------------------------------
@Oleg I will investigate whether it is possible to do both, but since we are going to LLVM 3.0 with Cordova 1.5.0 projects as its default compiler, it should be easier.
> iOS PhoneGap 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.6.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Oleg Gryb (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213828#comment-13213828 ]
Oleg Gryb commented on CB-274:
------------------------------
It's not a good solution, because ARC is a way to go and recommended solution according to Apple.
> iOS PhoneGap 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
>
> 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
[jira] [Updated] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-274:
--------------------------------
Fix Version/s: 1.6.0
> iOS PhoneGap 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.6.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Oleg Gryb (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213891#comment-13213891 ]
Oleg Gryb commented on CB-274:
------------------------------
@Shazron: is it possible to create one version for ARC and another for GCC? You have so many versions for different platfforms anyway :)
> iOS PhoneGap 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.6.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
[jira] [Updated] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-274:
--------------------------------
Summary: iOS Cordova Template Project is not compilable with default Apple's ARC compiler 3.0 (was: iOS PhoneGap Template Project is not Compilable with default Apple's ARC compiler 3.0)
> 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.6.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225714#comment-13225714 ]
Shazron Abdullah commented on CB-274:
-------------------------------------
start of thread here:
http://mail-archives.apache.org/mod_mbox/incubator-callback-dev/201203.mbox/%3CCAE6O_-byJo2LzufjGY0w_myw-sJMUK9VaJuP8ae6kWACDjyANA@mail.gmail.com%3E
> iOS PhoneGap 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.6.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
[jira] [Updated] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-274:
--------------------------------
Fix Version/s: (was: 2.0.0)
2.1.0
> 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 Cordova
> 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: 2.1.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213783#comment-13213783 ]
Patrick Mueller commented on CB-274:
------------------------------------
Have you tried, instead, to set compile time options so that it doesn't use ARC? Pretty sure that's what I've done in the past.
Any other plugins you might be using could also be similarly affected, so "compile option change" sounds better than "source code change" to me.
> iOS PhoneGap 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
>
> 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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213877#comment-13213877 ]
Patrick Mueller commented on CB-274:
------------------------------------
I suspect, long-term, ARC may be the way to go. But I'm talking about tactical here. How can we get this to work, in the easiest possible way, today.
Do we need to doc this? Assuming we figure out a reasonable, tactical approach?
What versions of: Xcode, Mac OS, iOS are you using, running, building for?
> iOS PhoneGap 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
>
> 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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Oleg Gryb (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225394#comment-13225394 ]
Oleg Gryb commented on CB-274:
------------------------------
@Shazron If you ask me then ARC - is the only thing that I care about, because Apple recommended it, our team uses it as a standard and nobody seems to want to be in a memory management business, but I've seen rants at some forums where hard core Mac programmers were saying that they do want to be in the memory management business, because they can deliver more efficient code this way. I'm not sure how important that is for PhoneGap community, so make your own judgement or create a poll and let the people vote.
> iOS PhoneGap 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.6.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Oleg Gryb (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213885#comment-13213885 ]
Oleg Gryb commented on CB-274:
------------------------------
Your tactical approach will work for the people who have flexibility in choosing a compiler. When you work in a team where everybody uses ARC, telling them that we're going to disable it is not an option.
> iOS PhoneGap 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.6.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
[jira] [Commented] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273740#comment-13273740 ]
Shazron Abdullah commented on CB-274:
-------------------------------------
Transitioning to ARC Release Notes: http://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html
> 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 Cordova
> 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: 2.0.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
[jira] [Updated] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Brian LeRoux (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian LeRoux updated CB-274:
----------------------------
Fix Version/s: (was: 1.6.0)
1.7.0
> 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
[jira] [Commented] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272771#comment-13272771 ]
Shazron Abdullah commented on CB-274:
-------------------------------------
D'oh - we can't have dual support of course, since this is compile time and we ship a built binary for the framework. We'll have to turn it on, and require ARC. The problem is, all the plugins will need to upgrade as well.
This then becomes a communication issue that we will need to send to devs ahead of time. We can push this to 2.0 but we must have an extended RC period to iron out the bugs, but we can start blogging about this change now.
If are to push it to now (1.8.0) my suggestion is to *exclude* ARC for CDVPlugin, and instruct users how to exclude ARC for their plugin files: http://stackoverflow.com/questions/6448874/disable-automatic-reference-counting-for-some-files - this way there is a transition. We can also print out warnings in the console.log about the migration to ARC.
> 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 Cordova
> 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.8.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
[jira] [Updated] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-274:
--------------------------------
Fix Version/s: (was: 1.7.0)
1.8.0
Punting this for 1.8.0, opens up a can of worms if we want dual support. Need to think about integration with non-ARC libraries, etc which users will run in to.
> 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.8.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
[jira] [Updated] (CB-274) iOS Cordova Template Project is not
compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-274:
--------------------------------
Fix Version/s: (was: 1.8.0)
2.0.0
Breaking change - shifting to 2.0.0
> 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 Cordova
> 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: 2.0.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13213882#comment-13213882 ]
Shazron Abdullah commented on CB-274:
-------------------------------------
This is not a trivial change and requires a lot of testing with the core code - plus some investigation to make it work with projects that don't want to use ARC. Basically the project will need to decide to go ARC only for this change, possibly.
I'll tentatively slate this for 1.6.0, this won't make it for 1.5.0 which is being released soon.
> iOS PhoneGap 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.6.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225413#comment-13225413 ]
Shazron Abdullah commented on CB-274:
-------------------------------------
This is where we are going eventually - ARC. Personally I am in the camp of doing what's easiest for devs. "More efficient" perhaps in context of their apps (games?), but for Cordova that is not relevant for the app space we are in. I'll post a message on the PhoneGap Google Groups regarding ARC.
> iOS PhoneGap 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.6.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
[jira] [Commented] (CB-274) iOS PhoneGap Template Project is not
Compilable with default Apple's ARC compiler 3.0
Posted by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13225447#comment-13225447 ]
Patrick Mueller commented on CB-274:
------------------------------------
If we want to be able to support folks who want to compile WITHOUT ARC support, then I think we'll be forced to add #ifdef sections for retain/etc calls (that ARC would auto-magically call, or whatever).
Haven't found a good reference for how to do this yet, but seems like it will be a bit ugly. Manageable, but ugly.
And then some day arrives when no one ever builds without ARC support, and we remove the #ifdef sections.
> iOS PhoneGap 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.6.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