Cordova iOS插件安装pod安装默默退出

时间:2016-12-09 21:47:04

标签: ios cordova jenkins

我正在编写一个脚本,可以自动构建适用于iOS的Cordova App。 我正在使用CLI 6.4.0和cordova-ios 4.3.1,我使用新的可能性将一个框架作为pod添加到插件中。插件在config.xml中指定如下:

<plugin name="sbb-cordova-plugin-onboarding" spec="~0.0.4" />

并且该插件使用框架作为pod:

<framework src="SBBSMPLib" type="podspec"
    spec=":git => 'https://code.sbb.ch/scm/kd_cp/sbbsmplib-ios.git', :branch => 'develop'"/>

我的脚本在我的MacBook上运行良好。在那里我得到以下输出

...

Running `pod install` (to install plugins)
Running command: pod install --verbose
==== pod install start ====

  Preparing

....

现在我正在尝试在Jenkins基础架构的Mac服务器上运行该脚本。插件安装失败,并显示以下日志:

Discovered plugin "sbb-cordova-plugin-onboarding" in config.xml. Adding it to the project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "sbb-cordova-plugin-onboarding@~0.0.4"
Fetching plugin "sbb-cordova-plugin-onboarding@~0.0.4" via npm
Copying plugin "/Users/admin/.cordova/lib/npm_cache/sbb-cordova-plugin-onboarding/0.0.4/package" => "/Users/admin/jenkins-slave/workspace/kd.esta.mobile.hybrid.onboarding-testapp.ios.developer/apps/onboarding-testapp/plugins/sbb-cordova-plugin-onboarding"
Calling plugman.install on plugin "/Users/admin/jenkins-slave/workspace/kd.esta.mobile.hybrid.onboarding-testapp.ios.developer/apps/onboarding-testapp/plugins/sbb-cordova-plugin-onboarding" for platform "ios
Installing "sbb-cordova-plugin-onboarding" for ios
Running command: /Users/admin/jenkins-slave/workspace/kd.esta.mobile.hybrid.onboarding-testapp.ios.developer/apps/onboarding-testapp/platforms/ios/cordova/version 
Command finished with error code 0: /Users/admin/jenkins-slave/workspace/kd.esta.mobile.hybrid.onboarding-testapp.ios.developer/apps/onboarding-testapp/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/kd.esta.mobile.hybrid.onboarding-testapp.ios.developer/apps/onboarding-testapp/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/kd.esta.mobile.hybrid.onboarding-testapp.ios.developer/apps/onboarding-testapp/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
Failed to restore plugin "sbb-cordova-plugin-onboarding" from config.xml. You might need to try adding it again. Error: Version should contain only numbers and dots
Saving ios@4.3.1 into platforms.json
No scripts found for hook "after_platform_add".

也就是说,'pod install'什么都不做。

所以我猜这个问题与Jenkins Mac Server的配置有关。知道出了什么问题以及如何得到更详细的错误吗?

感谢

1 个答案:

答案 0 :(得分:1)

为此问题https://issues.apache.org/jira/browse/CB-12272

打开了Cordova问题