2016-08-23 2 views
1

ich die Cordova 6.3.1 verwenden. Der Versuch, mit der Cordova CLI nach iOS zu erstellen, führt zu dem unten dargestellten Problem. $ cordova build ios Cordova nicht bauen - Plattform Config.xml falsch

Error: Pruning at selector "/widget/plugins" from "/Users/path/to/cordova/project/cordova/platforms/ios/Myproj/config.xml" went bad. 

ich auch den gleichen Fehler, wenn die Plattform Aktualisierung:

$ cordova platform update ios 

Updating ios project... 
iOS project updated with [email protected] 
Error: Pruning at selector "/widget/plugins" from "/Users/path/to/cordova/project/cordova/platforms/ios/Myproj/config.xml" went bad. 

1) Was genau macht diese Beschneidung Fehler bedeuten?

ich feststellen, dass die config.xml in cordova gelegen/platforms/ios/Myproj/keine Informationen von meiner Wurzel config.xml enthält. Es ist nur die Standard-Datei, die wie folgt beginnt:

<widget xmlns  = "http://www.w3.org/ns/widgets" 
     id  = "io.cordova.helloCordova" 
     version = "2.0.0"> 
    <name>HelloCordova</name> 

    <description> 
     A sample Apache Cordova application that responds to the deviceready event. 
    </description> 

Meine Wurzel config.xml-Datei wie folgt beginnt:

<?xml version='1.0' encoding='utf-8'?> 
<widget id="com.myproj.app" version="1.0.38" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> 
    <name>Myproj</name> 
    <description> 
     Some description. 
    </description> 

Inzwischen Installation schien in Ordnung, wenn ich das tat nach dem hinzufügen Plattform:

$ cordova platform add ios 

Adding ios project... 
Creating Cordova project for the iOS platform: 
     Path: ../../../../../desktop/dev/path/to/my/project/cordova/platforms/ios 
     Package: com.myproj.app 
     Name: Myproj 
iOS project created with [email protected] 
Installing "com.mbppower.camerapreview" for ios 
Installing "com.phonegap.plugins.PushPlugin" for ios 
Installing "cordova-plugin-device" for ios 
Installing "cordova-plugin-globalization" for ios 
Installing "com.telerik.plugins.healthkit" for ios 
Installing "com.transistorsoft.cordova.background-geolocation" for ios 
Installing "cordova-plugin-dialogs" for ios 
Installing "cordova-plugin-background-fetch" for ios 
Installing "cordova-plugin-afnetworking" for ios 
Plugin "cordova-plugin-background-fetch" already installed on ios. Making it top-level. 
Installing "cordova-plugin-camera" for ios 
Installing "cordova-plugin-compat" for ios 
Dependent plugin "cordova-plugin-compat" already installed on ios. 
Installing "cordova-plugin-console" for ios 
Plugin "cordova-plugin-device" already installed on ios. Making it top-level. 
Plugin "cordova-plugin-dialogs" already installed on ios. Making it top-level. 
Installing "cordova-plugin-file" for ios 
Dependent plugin "cordova-plugin-compat" already installed on ios. 

The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml. 

If this is a new application no changes are required. 

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add: 

     "<preference name="AndroidPersistentFileLocation" value="Compatibility" />" 

to config.xml in order for the application to find previously stored files. 


Installing "cordova-plugin-file-transfer" for ios 
Dependent plugin "cordova-plugin-file" already installed on ios. 
Installing "cordova-plugin-geolocation" for ios 
Dependent plugin "cordova-plugin-compat" already installed on ios. 
Dependent plugin "cordova-plugin-globalization" already installed on ios. 
Installing "cordova-plugin-http" for ios 
Dependent plugin "cordova-plugin-file" already installed on ios. 
Installing "cordova-plugin-inappbrowser" for ios 
Installing "cordova-plugin-media-capture" for ios 
Dependent plugin "cordova-plugin-file" already installed on ios. 
Dependent plugin "cordova-plugin-compat" already installed on ios. 
Installing "cordova-plugin-pedometer" for ios 
Installing "cordova-plugin-photokandy-video-thumbnail" for ios 
Dependent plugin "cordova-plugin-file" already installed on ios. 
Installing "cordova-plugin-whitelist" for ios 
Installing "phonegap-plugin-barcodescanner" for ios 

2) Wie funktioniert die Plattforminstallation? Genauer gesagt, wie sagt es aus, was in der plattformspezifischen config.xml sein sollte?

Ich hoffe, dass diese Fragen für immer meine Build zu laufen im Kontext beantwortet werden. Einige andere Hintergrundinformationen: Ich bin mit Sencha Touch und Gebäuden mit $sencha app build native Sencha Cmd verwendet, die den ursprünglichen Cordova Projektordner gestartet.

Antwort

0

cordova plugins --list öffnen x-code finden diese plugins vielleicht cordova plugins liste haben einige plugins aber ios project ist nicht.

Sie es DIY löschen und erneut installieren platform > ios > fecth.json or ios.json or package.json hoffen hilfreich

sorry, bin ich auf Englisch nicht gut.

0

Für mich ist die Lösung von diesem Posten ausgearbeitet: Cordova pruning error for android config xml

Sie haben alle Plugins und Plattformen zu entfernen, zu aktualisieren cordova und fügen Sie dann wieder alle Plugins und Plattformen. Um Bereinigung schrieb die Plugins und meine ios Plattform i ein npm Skript:

{ 
    ... 
    "rm-plugins": "cordova plugins list | awk '{print $1}' | xargs cordova plugins rm", 
    "rm-platforms": "cordova platforms remove ios", 
    "cleanup": "npm run rm-platforms && npm run rm-plugins && npm update cordova" 
    ... 
} 

PS: Ich habe nicht genau die gleiche Fehlermeldung, wie Sie hatte:

Error: Pruning at selector "/*/plugins" from "/Users/Thomas/work/repos/nexboard/iOS/nexboard/platforms/ios/neXboard/config.xml" went bad. 
Verwandte Themen