Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

ionic cordova platform add fails with local plugins

Offen
#3,588 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
typescript
Bereich
cli

Rechercherichtung

Reproduziere den Fehler aus den aufgeführten ionic start-, local plugin add- und ionic cordova platform add ios-Befehlen und vergleiche ihn anschließend mit cordova platform add ios. Beginne beim Ionic-CLI-Befehlspfad, der Cordova aufruft, und ermittle die Ursache des local-plugin-Fehlers. Erledigt ist die Aufgabe, wenn der Ionic-Befehl mit derselben local-plugin-Konfiguration erfolgreich ist und das Projekt für diesen Pfad eine Testabdeckung besitzt, zusätzlich ein Regressionstest vorhanden ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

triage

Description:
Hi there!
This happens since about 2 days. When i add a platform like ios with 'ionic cordova platform add ios', it fails, because i have local plugins added to my config.xml.
When i use cordova platform add ios instead, it works.
Am i supposed to only use cordova platform add?

Steps to Reproduce:
ionic start myApp tabs
(i copied a plugin to ProjectDir/local-plugins/PluginDir)
ionic cordova plugin add local-plugins/PluginDir
ionic cordova platform add ios -> fails
rm -rf platforms
rm -rf plugins
cordova platform add ios -> success

Output:
[ERROR] An error occurred while running subprocess cordova.
--verbose gives me no more infos

My ionic info:
Ionic:

ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.4, (and 4 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/schoko/Library/Android/sdk)
ios-deploy : 2.0.0
ios-sim : 6.0.0
NodeJS : v8.12.0 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000

Other Information:
I tried to roll back ionic, app-scripts ... but no change.

Vorherrschende Sprache
TypeScript
Sterne
2k
Forks
681
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ionic-team/ionic-cli

Alle Issues in ionic-team/ionic-cli

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.