我使用Plugman来安装这样的插件:
plugman install --platform iOS --project/Users/User/Documents/Projects/MyProject --plugin https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
和Plugman说安装成功了.
然而,在构建项目时,xCode输出说:
CDVPlugin类CDVSplashScreen(pluginName:splash screen)不存在.
[CDVTimer] [splashscreen] 1.785994ms
CDVPlugin类CDVSplashScreen(pluginName:SplashScreen)不存在.
错误:找不到插件'SplashScreen',或者不是CDVPlugin.检查config.xml中的插件映射.
第二个错误可能是因为我试图用javascript调用Splashscreen插件但我在我的项目中的两个位置都有SplashScreen文件:
MyProject的/科尔多瓦/插件/ 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看起来像这样:
没有相同的问题我无法安装任何其他插件.有没有人有任何想法?
我正在使用没有CLI的Phonegap 3.0(从Phonegap 2.4升级)
Des*_*ian 13
在xcode中,我导航到MyProject/MyProject/Plugins
并找到了
就在那里根.所以我选择删除(只有引用),重新添加了文件系统中的SplashScreen文件夹.
现在文件夹看起来像这样:
现在SplashScreen有效!
| 归档时间: |
|
| 查看次数: |
4940 次 |
| 最近记录: |