gpt4 book ai didi

jenkins - 如何使用jenkins ci和electronic-builder在Mac上解决CodeSign失败?

转载 作者:行者123 更新时间:2023-12-03 12:40:04 25 4
gpt4 key购买 nike

当我建立终端codesign suceess但当我建立 Jenkins ci时,总是抛出错误。
错误内容:
file = build/mac/VIPThink-test-online.app identityName =开发人员ID xxxx identityHash = xxx ProvisioningProfile =无
错误:命令失败:codesign --sign xxx --force/Users/Shared/Jenkins/Home/workspace/pc-student-build-test/build/mac/VIPThink-test-online.app/Contents/Frameworks/Electron Framework .framework/版本/A/Electron 框架
/Users/Shared/Jenkins/Home/workspace/pc-student-build-test/build/mac/VIPThink-test-online.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron框架:errSecInternalComponent

最佳答案

1st>只需在终端中输入此代码
导出CSC_IDENTITY_AUTO_DISCOVERY = false
2nd>运行electron-builder --mac zip
它将在没有登录 key 的情况下临时创建一个zip文件
它还成功地为Mac构建了项目

关于jenkins - 如何使用jenkins ci和electronic-builder在Mac上解决CodeSign失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62591842/

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