Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8189

iOS platform update still fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 4.0.0, 4.1.3
    • None
    • cordova-cli, cordova-ios
    • None
    • Mac

    Description

      Cordova 4.0.0 to 4.1.2

      $ cordova platform update ios
      $ cordova run ios

      error
      [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)
      

      My temporary workaround:

      cordova/platforms/ios/CordovaLib/Classes/CDVCommandDelegateImpl.m
      - (BOOL)execute:(CDVInvokedUrlCommand*)command
      {
          return [_commandQueue execute:command];
      }
      

      + including the method in the header file

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            janhar jan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: