Mac OS X

编程入门 行业动态 更新时间:2024-10-24 02:39:06
本文介绍了Mac OS X-使Atlassian Bamboo可获得钥匙串证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个Bamboo计划来构建一个程序包,我想用我的开发人员证书对该程序包进行签名.在我的构建脚本中,我有这个:

I have a Bamboo plan which builds a package, and I want to sign that package with my developer certificate. In my build script, I have this:

productsign --sign "Name of my certificate" "input.pkg" "output.pkg"

从命令行运行此脚本可以按预期工作.但是,从Bamboo运行脚本,总是出现错误:

Running this script from the command line works as expected. However, running the script from Bamboo, I always get the error:

productsign: error: Could not find appropriate signing identity for "Name of my certificate"

我认为这一定是由于从Bamboo运行时生成脚本在其中运行的上下文所致.如何使证书在Bamboo中可用?它安装在System中,而不是在login中.

I presume this must be because of the context that the build script is run in when run from Bamboo. How do I make the certificate usable in Bamboo? It is installed in System, not login.

推荐答案

如果您需要以root身份运行Bamboo,则需要将登录钥匙串中的相应证书复制到您的系统钥匙串,使用钥匙串访问"(应用程序">实用程序").

If you need to run Bamboo as root, then you'll need to copy the appropriate certificates from your login keychain to your System keychain using Keychain Access (Applications > Utilities).

话虽如此,以用户身份运行Bamboo而不是root可能更好.例如.如果您需要使用移动供应配置文件在同一服务器上签名任何iOS版本,则root将不起作用.

Having said that, it would probably be better to run Bamboo as a user instead of root. E.g. if you need to use mobile provisioning profiles to sign any iOS builds on the same server, being root will not work.

更多推荐

Mac OS X

本文发布于:2023-11-30 03:27:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1648570.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Mac   OS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!