iOS 编译错误 : no visible @interface for 'CDVCommandDelegateImpl' declares the selector 'execute:'

标签 ios objective-c iphone cordova

升级到最新的 Cordova 版本 (3.6.3) 后,我在运行 cordova build ios 命令时收到此错误。

错误:

/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];

其他信息:

  • 已安装平台:android 3.6.3、ios 3.6.3

  • 我使用的是最新的 xcode 版本 (6.0.1)

  • 一切都是在将 Cordova 升级到 3.6.3 后开始的(在那之前我运行的是 3.4.1)

知道如何解决这个问题吗?

enter image description here

最佳答案

根据 Nazar 所说,创建新应用程序和比较现有应用程序时唯一的区别是 platforms/ios/Classes文件夹正在删除 execute方法来自 MainViewController.m .

file diff

这为我清除了构建错误。

关于iOS 编译错误 : no visible @interface for 'CDVCommandDelegateImpl' declares the selector 'execute:' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25976033/

相关文章:

ios - 在 100% 高度的 div 中垂直居中 div 在 Mobile Safari 上不起作用

iphone - 保管箱集成 iphone

ios - UIImage View 重置/清空

objective-c - 如何获取本地化的计时器标签,例如UIDatePickerModeCountDownTimer?

iphone - CGContext绘制图像

ios - 具有NSAttributedString的可单击UILabel

ios - RestKit RKObjectManager:getObjectsAtPath-自定义处理

ios - 不使用 Xcode 制作 Cocoa 应用程序,例如 : using VIM for editing and the Swift compiler

ios - 如何获取每30个:00(30 minutes) from current time to 10:30 pm的时间间隔

ios - UIScrollView 中的多个 UITableView(如 Etsy 应用程序)