gpt4 book ai didi

ios - Cordova iOS 插件安装 pod 安装静默退出

转载 作者:行者123 更新时间:2023-11-29 11:51:16 25 4
gpt4 key购买 nike

我正在编写一个脚本,用于自动构建适用于 iOS 的 Cordova 应用程序。我正在使用 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 服务器的配置有关。知道出了什么问题以及如何获得更详细的错误吗?

感谢

最佳答案

针对此问题打开的 Cordova 问题 https://issues.apache.org/jira/browse/CB-12272

关于ios - Cordova iOS 插件安装 pod 安装静默退出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41069416/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com