Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12272

cordova-ios: installation of plugin with pod dependency fails: pod install silently exits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 4.3.1
    • cordova-ios@4.5.1
    • cordova-ios
    • Mac OS X 10.12.2
      Xcode 8.2
      iPhoneOS10.2.sdk - iOS 10.2
      Cocoapods 1.1.0.rc.3
      cordova@6.4.0
      cordova-ios@4.3.1

    Description

      I have a Cordova plugin which has a 'framework' dependency of type 'podspec' (see attached plugin.xml). When I add this plugin to a Cordova app on my MacBook, everything works fine, the plugin gets installed and then 'pod install' ist called and runs fine.

      I am automating the build on MacServer nodes of our Jenkins CI. The plugin installation fails there.

      I run this script :

      CORDOVA_VERSION=6.4.0
      npm install cordova@${CORDOVA_VERSION}
      PATH=$PATH:/usr/local/bin/:$(pwd)/node_modules/cordova/bin
      rm -rf hello-world
      cordova create hello-world
      cd hello-world
      cordova platform add ios@4.3.1
      cordova -d plugin add sbb-cordova-plugin-onboarding@0.0.5
      

      The plugin add command fails with this output:

      + cordova -d plugin add sbb-cordova-plugin-onboarding@0.0.5
      
      You have been opted out of telemetry. To change this, run: cordova telemetry on.
      No scripts found for hook "before_plugin_add".
      Calling plugman.fetch on plugin "sbb-cordova-plugin-onboarding@0.0.5"
      Fetching plugin "sbb-cordova-plugin-onboarding@0.0.5" via npm
      Copying plugin "/Users/admin/.cordova/lib/npm_cache/sbb-cordova-plugin-onboarding/0.0.5/package" => "/Users/admin/jenkins-slave/workspace/user.u209792.cordova/hello-world/plugins/sbb-cordova-plugin-onboarding"
      Calling plugman.install on plugin "/Users/admin/jenkins-slave/workspace/user.u209792.cordova/hello-world/plugins/sbb-cordova-plugin-onboarding" for platform "ios
      Installing "sbb-cordova-plugin-onboarding" for ios
      Running command: /Users/admin/jenkins-slave/workspace/user.u209792.cordova/hello-world/platforms/ios/cordova/version 
      Command finished with error code 0: /Users/admin/jenkins-slave/workspace/user.u209792.cordova/hello-world/platforms/ios/cordova/version 
      Finding scripts for "before_plugin_install" hook from plugin sbb-cordova-plugin-onboarding on ios platform only.
      No scripts found for hook "before_plugin_install".
      Install start for "sbb-cordova-plugin-onboarding" on ios.
      Beginning processing of action stack for ios project...
      Action stack processing complete.
      Adding pods since the plugin contained <framework>(s) with type="podspec"
      pods.json: The file at /Users/admin/jenkins-slave/workspace/user.u209792.cordova/hello-world/platforms/ios/pods.json does not exist.
      Creating new pods.json in platforms/ios
      Wrote to pods.json.
      Podfile: The file at /Users/admin/jenkins-slave/workspace/user.u209792.cordova/hello-world/platforms/ios/Podfile does not exist.
      Creating new Podfile in platforms/ios
      Wrote to Podfile.
      Set pods.json for `SBBSMPLib`
      Added pod line for `SBBSMPLib`
      Wrote to pods.json.
      Wrote to Podfile.
      Running `pod install` (to install plugins)
      Failed to install 'sbb-cordova-plugin-onboarding':undefined
      Error: Version should contain only numbers and dots
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE
      

      pod install does nothing but gives no error.
      So I guess the problem has to do with the environment but it is for me very difficult to find the cause of the problem without a more detailled error message or more informations.

      Is there any way to get more information or detailled error message?

      I attach the whole 'hello-world' Cordova app as it is after the build failure.

      Thanks,

      Attachments

        1. plugin.xml
          3 kB
          Jean-Marc Terrettaz
        2. hello-world.zip
          2.35 MB
          Jean-Marc Terrettaz

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jmterrettaz Jean-Marc Terrettaz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: