Ich habe ein benutzerdefiniertes Cordova-Plugin geschrieben, die als Abhängigkeit "Media" Plugin haben.Benutzerdefinierte Cordova Plugin iOS index.js dosent erkennen meine .js-Datei
Wenn ich "cordova plugin add" starte "myPlugin" "wird das Plugin im Beispielprojekt installiert, aber wenn ich in meinem index.js versuche, mein Plugin zu starten, erkennt es es nicht und wenn ich versuche" Media "zu erstellen Objekt tut es.
Hier ist mein Plugin .xml-Datei:
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="cordova-plugin-MyPlugin"
version="1.0.0">
<name> MyPlugin </name>
<description>Cordova MyPlugin Plugin</description>
<author> MyPlugin </author>
<license>MIT</license>
<keywords> MyPlugin </keywords>
<dependency id="org.apache.cordova.media"/>
<js-module src="www/MyPlugin.js" name="MyPlugin">
<clobbers target="window.plugins.MyPlugin" />
</js-module>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="MyPlugin">
<param name="ios-package" value="CDVMyPlugin" />
</feature>
</config-file>
<!-- Sources -->
<header-file src="src/ios/CDVMyPlugin.h"/>
<source-file src="src/ios/CDVMyPlugin.m"/>
<!-- iOS Frameworks -->
<framework src="libz.dylib" />
</platform>
</plugin>
Danke für die Hilfe.