gpt4 book ai didi

ios - FaSTLane 构建从命令行工作,而不是来自 Jenkins

转载 作者:行者123 更新时间:2023-12-01 22:18:31 29 4
gpt4 key购买 nike

我有一个非常简单的快车道设置:

lane :buildonly do
build_app scheme: "MyApp", configuration: "Release", export_xcargs: "-allowProvisioningUpdates"
end

该 channel 在完全无人看管的命令行上完美运行(我必须第一次输入我的凭据,但现在它会记住它们)。
[16:54:39]: Successfully exported and compressed dSYM file
[16:54:39]: Successfully exported and signed the ipa file:
[16:54:39]: /Users/jenkins/MyApp/MyApp.ipa

+------+------------------+-------------+
| fastlane summary |
+------+------------------+-------------+
| Step | Action | Time (in s) |
+------+------------------+-------------+
| 1 | default_platform | 0 |
| 2 | build_app | 594 |
+------+------------------+-------------+

[16:54:40]: fastlane.tools just saved you 10 minutes! 🎉

我设置了一个简单的 Jenkins 作业(同一台机器,同一用户),它只是克隆我的 repo 并运行脚本
bundle install
bundle exec fastlane buildonly

这几乎立即失败:
[16:59:41]: ▸ === BUILD TARGET MyTarget OF PROJECT MyApp WITH CONFIGURATION Release ===
[16:59:41]: ▸ Check dependencies
[16:59:41]: ▸ Code Signing Error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "FFFFFFFF" with a private key was found.

我必须对我的 Jenkins 设置进行哪些更改,以便它可以看到与命令行相同的证书?

最佳答案

由于 Jenkins 使用 launchd 运行,我不得不将 Jenkins 用户的证书从“登录”钥匙串(keychain)复制到“系统”中。

感谢 this问题。

关于ios - FaSTLane 构建从命令行工作,而不是来自 Jenkins,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49244455/

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