[
https://issues.apache.org/jira/browse/CB-2309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13566343#comment-13566343
]
Hichem commented on CB-2309:
----------------------------
Problem Solved :
We moved the new MainViewController.m into our Project. In addition we have to
declare these interfaces and import the related header files:
#import <Cordova/CDVViewController.h>
#import <Cordova/CDVCommandDelegateImpl.h>
#import <Cordova/CDVCommandQueue.h>
@interface MainViewController : CDVViewController
@end
@interface MainCommandDelegate : CDVCommandDelegateImpl
@end
@interface MainCommandQueue : CDVCommandQueue
@end
> Upgrading project from 2.2.0 to 2.3.0 causes Main Command Delegate cannot use
> 'super'
> -------------------------------------------------------------------------------------
>
> Key: CB-2309
> URL: https://issues.apache.org/jira/browse/CB-2309
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.3.0
> Environment: Xcode 4.5.2
> Reporter: Hichem
> Assignee: Shazron Abdullah
> Labels: 2.3.0, cordova, phonegap, xcode
>
> When upgrading the project from 2.2.0 to 2.3.0 Build failed : 3 errors
> ''MainCommandDelegate' cannot use 'super' because it is a root class'
> - (id)getCommandInstance:(NSString*)className
> {
> return [super getCommandInstance:className];
> }
> - (BOOL)execute:(CDVInvokedUrlCommand*)command
> {
> return [super execute:command];
> }
> - (NSString*)pathForResource:(NSString*)resourcepath;
> {
> return [super pathForResource:resourcepath];
> }
> and 1 error : ''MainCommandQueue' cannot use 'super' because it is a root
> class'
> - (BOOL)execute:(CDVInvokedUrlCommand*)command
> {
> return [super execute:command];
> }
> Please Help ;)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira