Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS compile error: no visible @interface for 'CDVCommandDelegateImpl' declares the selector 'execute:'

After upgrading to latest Cordova version (3.6.3) i get this error when running the cordova build ios command.

The error:

/Volumes/local.uhmuhm.net/projectxxx/htdocs/phonegap/src/Projectxxx/platforms/ios/Projectxxx/Classes/MainViewController.m:154:19: error: no visible @interface for 'CDVCommandDelegateImpl' declares the selector 'execute:' return [super execute:command]; 

Other info:

  • Installed platforms: android 3.6.3, ios 3.6.3

  • I'm on last xcode version (6.0.1)

  • Everything started after upgrading Cordova to 3.6.3 (i was running 3.4.1 before that)

Any idea on how to solve this?

enter image description here

like image 773
Marco Magrini Avatar asked Sep 22 '14 14:09

Marco Magrini


2 Answers

Building on what Nazar said, the only difference of significance when creating a new app and comparing an existing platforms/ios/Classes folder was removing the execute method from MainViewController.m.

file diff

This clears up the build error for me.

like image 198
SKFox Avatar answered Oct 02 '22 08:10

SKFox


I've fixed the same problem with

cordova platform remove ios cordova platform add ios 
like image 25
Victor Kushnerov Avatar answered Oct 02 '22 07:10

Victor Kushnerov