我用Plugman安装了这样一个插件:
plugman安装--平台iOS --项目/用户/用户/文档/项目/MyProject-插件https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
Plugman说安装是成功的。
然而,在构建项目时,xCode输出说:
CDVPlugin类CDVSplashScreen (pluginName: CDVSplashScreen)不存在。 CDVTimer 1.785994ms CDVPlugin类CDVSplashScreen (pluginName: SplashScreen)不存在。 错误:插件'SplashScreen‘找不到,或者不是CDVPlugin。查看config.xml中的插件映射。
第二个错误可能是因为我试图用javascript调用Splash幕插件,但是在我的项目中有两个位置的Splashscreen文件:
MyProject/cordova/plugins/org.apache.cordova.core.splashscreen/
和
MyProject/MyProject.xcode/plugins/org.apache.cordova.core.splashscreen/CDVSplashScreen.h MyProject/MyProject.xcode/plugins/org.apache.cordova.core.splashscreen/CDVSplashScreen.m
因此,MyProject如下所示:
没有同样的问题,我无法安装任何其他插件。有人有什么想法吗?
我使用的是Phonegap3.0,没有CLI (从Phonegap2.4升级)
发布于 2013-09-02 18:49:05
在xcode中,我导航到MyProject/MyProject/Plugins
找到了
就在根部。因此,我选择删除(只删除引用),重新添加SplashScreen文件夹,该文件夹位于文件系统中。
现在,该文件夹如下所示:
现在SplashScreen开始工作了!
https://stackoverflow.com/questions/18563036
复制相似问题