phonegap ios插件notificationEx CDVPlugin.h文件找不到 [英] phonegap ios plugin notificationEx CDVPlugin.h file not found

查看:127
本文介绍了phonegap ios插件notificationEx CDVPlugin.h文件找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了phonegap插件NotificationEx,但我尝试编译时遇到此错误:



找不到CDVPlugin.h文件


我使用Xcode 4.5,cordova 2.2.0和JQM 1.2.0

$ b

解决方案

我在安装ShareKit时遇到了同样的问题plugin on Xcode 4.5,cordova 2.1.0& JQM 1.2.0。
有问题的块是:

  #ifdef CORDOVA_FRAMEWORK 
#import< Cordova / CDVPlugin.h>
#import< Cordova / CDVPluginResult.h>
//#import< Cordova / JSONKit.h>

#else
#importCDVPlugin.h
#importCDVPluginResult.h
#importJSONKit.h
#endif

对我有用的是注释掉 #ifdef



此外,也可以注释掉整个 #else #import< Cordova / JSONKit.h> 行已在我使用插件下载的源代码中注释掉了,所以我没有打扰它。


I installed the phonegap plugin NotificationEx but I get this error when trying to compile:

CDVPlugin.h file not found.

I'm using Xcode 4.5, cordova 2.2.0 and JQM 1.2.0

any idea what could be wrong?

解决方案

I had the same problem while installing the ShareKit plugin on Xcode 4.5, cordova 2.1.0 & JQM 1.2.0. The problematic block was:

#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVPlugin.h>
#import <Cordova/CDVPluginResult.h>
//#import <Cordova/JSONKit.h>

#else
#import "CDVPlugin.h"
#import "CDVPluginResult.h"
#import "JSONKit.h"
#endif

What worked for me is commenting out the #ifdef line as well as commenting out the whole #else block.

Also, the #import <Cordova/JSONKit.h> line was already commented out in the source code that I downloaded with the plugin, so I didn't bother messing with that.

这篇关于phonegap ios插件notificationEx CDVPlugin.h文件找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆