2016-09-30 30 views
1

我试图构建我的应用程序,但它没有找到任何插件,因为新的更新,我已经摆弄了很多我的配置,我开始失去踪迹我在做什么。我的文件夹中的所有我的插件:Phonegap插件和Xcode没有在配置中找到

enter image description here

,在我的配置文件:

<?xml version='1.0' encoding='utf-8'?> 
<widget id="com.mycom" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"> 
    <name>Hilton Smythe</name> 
    <description> 
     Hilton Smythe Consultancy App 
    </description> 
    <author email="[email protected]" href="http://whatever.com"> 
     HiltonSmythe Web Team 
    </author> 
    <content src="index.html" /> 
    <plugin name="cordova-plugin-whitelist" source="npm" spec="1.1.0" /> 
    <plugin name="org.wbt11a.nativecamera" source="pgb" spec="0.1.4" /> 
    <allow-navigation href="*" /> 
    <allow-intent href="*" /> 
    <access origin="*" /> 
    <preference name="permissions" value="none" /> 
    <preference name="orientation" value="default" /> 
    <preference name="target-device" value="universal" /> 
    <preference name="fullscreen" value="true" /> 
    <preference name="webviewbounce" value="true" /> 
    <preference name="prerendered-icon" value="true" /> 
    <preference name="stay-in-webview" value="false" /> 
    <preference name="ios-statusbarstyle" value="black-opaque" /> 
    <preference name="detect-data-types" value="true" /> 
    <preference name="exit-on-suspend" value="false" /> 
    <preference name="show-splash-screen-spinner" value="true" /> 
    <preference name="auto-hide-splash-screen" value="true" /> 
    <preference name="disable-cursor" value="false" /> 
    <preference name="android-minSdkVersion" value="14" /> 
    <preference name="android-installLocation" value="auto" /> 
    <preference name="SplashScreen" value="screen" /> 
    <preference name="SplashScreenDelay" value="3000" /> 
    <plugin name="org.apache.cordova.battery-status" /> 
    <plugin name="org.apache.cordova.camera" /> 
    <plugin name="org.apache.cordova.media-capture" /> 
    <plugin name="org.wbt11a.nativecamera" source="pgb" spec="0.1.4" /> 
    <plugin name="org.apache.cordova.console" /> 
    <plugin name="org.apache.cordova.contacts" /> 
    <plugin name="org.apache.cordova.device" /> 
    <plugin name="org.apache.cordova.device-motion" /> 
    <plugin name="org.apache.cordova.device-orientation" /> 
    <plugin name="org.apache.cordova.dialogs" /> 
    <plugin name="org.apache.cordova.file" /> 
    <plugin name="org.apache.cordova.file-transfer" /> 
    <plugin name="org.apache.cordova.geolocation" /> 
    <plugin name="org.apache.cordova.globalization" /> 
    <plugin name="org.apache.cordova.inappbrowser" /> 
    <plugin name="org.apache.cordova.media" /> 
    <plugin name="org.apache.cordova.network-information" /> 
    <plugin name="org.apache.cordova.splashscreen" /> 
    <plugin name="org.apache.cordova.vibration" /> 

还有更多,但不认为有必要张贴整个配置

当我运行科尔多瓦平台添加iOS我只是得到这些错误:

Discovered plugin "org.apache.cordova.geolocation" in config.xml. Adding it to the project Failed to restore plugin "org.apache.cordova.geolocation" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.geolocation Discovered plugin "org.apache.cordova.globalization" in config.xml. Adding it to the project Failed to restore plugin "org.apache.cordova.globalization" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.globalization Discovered plugin "org.apache.cordova.inappbrowser" in config.xml. Adding it to the project Failed to restore plugin "org.apache.cordova.inappbrowser" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.inappbrowser Discovered plugin "org.apache.cordova.media" in config.xml. Adding it to the project Failed to restore plugin "org.apache.cordova.media" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.media Discovered plugin "org.apache.cordova.network-information" in config.xml. Adding it to the project Failed to restore plugin "org.apache.cordova.network-information" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.network-information Discovered plugin "org.apache.cordova.splashscreen" in config.xml. Adding it to the project Failed to restore plugin "org.apache.cordova.splashscreen" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.splashscreen Discovered plugin "org.apache.cordova.vibration" in config.xml. Adding it to the project Failed to restore plugin "org.apache.cordova.vibration" from config.xml. You might need to try adding it again. Error: Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.vibration

我在做什么明显错误?

回答

0

我更新了你的科尔多瓦版本。 Cordova 5.0后插件的命名已更改,并且存储的位置也一样。您正在使用新的注册表(npmjs.org),但旧的插件名称:org.apache.cordova.inappbrowser

与新的命名规则重新添加插件,如:cordova-plugin-inappbrowser

相关问题