Ich erhalte einen Fehler, wenn der Befehl versucht, ionic platform add ios
nach ionic plugin add ../my-custom-plugin
auszuführen.Fehler: pod: Befehl fehlgeschlagen mit Beendigungscode 1 mit Cordova
Failed to install 'cordova-plugin-my-custom-plugin':Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/path/to/myprj/platforms/ios/cordova/node_m
odules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Error: pod: Command failed with exit code 1
Mein plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/an
droid" id="cordova-plugin-my-custom-plugin" version="0.0.1">
<name>MyCustomPlugin</name>
<js-module name="MyCustomPlugin" src="www/Test.js">
<clobbers target="cordova.plugin.mycustomplugin" />
</js-module>
<platform name="ios">
<framework src="fmdb" type="podspec" spec="~> 2.6.2" />
<config-file parent="/*" target="config.xml">
<feature name="MyCustomPlugin">
<param name="ios-package" value="MyCustomPlugin" />
</feature>
</config-file>
<source-file src="src/ios/MyCustomPlugin.swift" />
</platform>
</plugin>
Ich habe bereits versucht, um etwas:
aber immer noch kann es nicht behoben werden. Was ist falsch?
Ich verwende:
- macOS Sierra
- ionische 2.2.1
- cordova 6.5.0
- CocoaPods 1.2.1
Aber ich trat auch Build-Fehler beim Ausführen 'ionic run ios -c -s -device -l'. 'Apple Mach-O Linker (id) Error' ... Oft Cordova ist schmerzhaft ... – neske
Ich fand die' Apple Mach-O Linker (id) Fehler Ursache. Mein Projekt mit 'cordova-plugin-mauron85-background-geolocation' Plugin (2.2.5). Wenn wir das Plugin installieren, ist das Problem aufgetreten. – neske