Phonegap Plugman iOS - 错误:未找到插件

Des*_*ian 2 xcode ios cordova

我使用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看起来像这样:

  • MyProject的/科尔多瓦
  • MyProject的/ CordovaLib
  • MyProject的/ MyProject的
  • MyProject的/ SpendToday.xcodeproj
  • MyProject的/ WWW

没有相同的问题我无法安装任何其他插件.有没有人有任何想法?

我正在使用没有CLI的Phonegap 3.0(从Phonegap 2.4升级)

Des*_*ian 13

在xcode中,我导航到MyProject/MyProject/Plugins

并找到了

  • /CDVSplashScreen.h
  • /CDVSplashScreen.m
  • /CDVInAppBrowser.h
  • /CDVInAppBrowser.m

就在那里根.所以我选择删除(只有引用),重新添加了文件系统中的SplashScreen文件夹.

现在文件夹看起来像这样:

  • /org.apache.cordova.core.splashscreen/CDVSplashScreen.h
  • /org.apache.cordova.core.splashscreen/CDVSplashScreen.m
  • /CDVInAppBrowser.h
  • /CDVInAppBrowser.m

现在SplashScreen有效!

  • 与inapp浏览器有同样的问题.甚至尝试删除插件并将其添加回来但没有成功.按照这些步骤从xcode项目中删除它并将其添加回来然后它工作得很好!谢谢! (2认同)