Skip to content

getPodSpecs is undefined #535

@nodh

Description

@nodh

Bug Report

Problem

I've updated cordova-ios (in an Ionic App) to 5.0.0 to use the new podspec tag in a plugin's plugin.xml. But the configuration doesn't get picked up. In Api.js I see, that plugin.getPodSpecs is undefined. I assume, thats because cordova depends on cordova-common in version 2.2.0, whereas cordova-ios requires 3.1.0 (just a guess).

What is expected to happen?

On ionic cordova add plugin ../test-plugin, the podspec elements should be read and the Podfile generated.

What does actually happen?

Instead, the dependencies are not entered in the Podfile or pods.json.

Environment, Platform, Device

Ionic:

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

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : ios 5.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 1.2.1, (and 7 other plugins)

System:

   ios-deploy : 1.9.4
   ios-sim    : 7.0.0
   NodeJS     : v11.5.0 (/usr/local/Cellar/node/11.5.0/bin/node)
   npm        : 6.8.0
   OS         : macOS Mojave
   Xcode      : Xcode 10.1 Build version 10B61

Version information

See above.

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions