cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8189) iOS platform update still fail
Date Thu, 12 Mar 2015 01:43:39 GMT

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

Shazron Abdullah commented on CB-8189:
--------------------------------------

It is solved as I showed in my test above (updating 4.0 to 4.1.2) -- no repro.

The template does not have the execute function at all, it was removed Jun 20th 2014 (deprecated
since Cordova 2.2) because it was deprecated: https://github.com/apache/cordova-ios/commits/master/bin/templates/project/__PROJECT_NAME__/Classes/MainViewController.m

The fix is to remove it in your MainViewController, not adding that code.


> iOS platform update still fail
> ------------------------------
>
>                 Key: CB-8189
>                 URL: https://issues.apache.org/jira/browse/CB-8189
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, iOS
>    Affects Versions: 4.0.0, 4.1.3
>         Environment: Mac
>            Reporter: jan
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> Cordova 4.0.0 to 4.1.2
> $ cordova platform update ios
> $ cordova run ios
> {code:title= error|borderStyle=solid}
> [INF] [shellscript] /Volumes/x/workspace/x_Mobile_App/cordova/platforms/ios/x/Classes/MainViewController.m:154:19:
error: no visible @interface for '''CDVCommandDelegateImpl''' declares the selector '''execute:'''
> [INF] [shellscript]     return [super execute:command];
> [INF] [shellscript]             ~~~~~ ^~~~~~~
> [INF] [shellscript] 1 error generated.
> [INF] [shellscript] 
> [INF] [shellscript] ** BUILD FAILED **
> [INF] [shellscript] 
> [INF] [shellscript] 
> [INF] [shellscript] The following build commands failed:
> [INF] [shellscript] 	CompileC build/x.build/Release-iphonesimulator/x.build/Objects-normal/i386/MainViewController.o
x/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
> [INF] [shellscript] (1 failure)
> [INF] [shellscript] Error: /Volumes/x/workspace/x_Mobile_App/cordova/platforms/ios/cordova/build:
Command failed with exit code 65
> [INF] [shellscript]     at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
> [INF] [shellscript]     at ChildProcess.emit (events.js:98:17)
> [INF] [shellscript]     at maybeClose (child_process.js:756:16)
> [INF] [shellscript]     at Process.ChildProcess._handle.onexit (child_process.js:823:5)
> {code}
> My temporary workaround:
> {code:title=cordova/platforms/ios/CordovaLib/Classes/CDVCommandDelegateImpl.m|borderStyle=solid}
> - (BOOL)execute:(CDVInvokedUrlCommand*)command
> {
>     return [_commandQueue execute:command];
> }
> {code}
> + including the method in the header file



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message