You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2017/08/22 22:35:00 UTC

[jira] [Updated] (CB-12272) cordova-ios: installation of plugin with pod dependency fails: pod install silently exits

     [ https://issues.apache.org/jira/browse/CB-12272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-12272:
----------------------------------
    Labels: backlog cordova-ios-4.3.x  (was: backlog cordova-ios-4.3.x ios-next)

> cordova-ios: installation of plugin with pod dependency fails: pod install silently exits
> -----------------------------------------------------------------------------------------
>
>                 Key: CB-12272
>                 URL: https://issues.apache.org/jira/browse/CB-12272
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios
>    Affects Versions: 4.3.1
>         Environment: 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
>            Reporter: Jean-Marc Terrettaz
>            Priority: Minor
>              Labels: backlog, cordova-ios-4.3.x
>             Fix For: cordova-ios@4.5.1
>
>         Attachments: hello-world.zip, plugin.xml
>
>
> 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 : 
> {code}
> 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
> {code}
> The plugin add command fails with this output: 
> {code}
> + 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
> {code}
> 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,



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org