访问 OSX 上的代码签名证书以构建 XCode 配置实用程序 [C# 首选]

发布于 2024-09-12 17:44:29 字数 614 浏览 3 评论 0原文

我正在用 C# 创建一个实用程序来为 iPhone 项目设置规定和构建设置。

XCode 项目文件包含以下几行:

            CODE_SIGN_ENTITLEMENTS = ***;
            CODE_SIGN_IDENTITY = ***;
            "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "***";
            ...
            PROVISIONING_PROFILE = ***;
            "PROVISIONING_PROFILE[sdk=iphoneos*]" = "***";

目前,我正在从 ~/Library/MobileDevice/Provisioning Profiles/ 获取配置文件列表,并使用其中的一些纯文本值来设置配置部分。

我想知道是否有任何方法可以访问已安装证书的列表来设置 Code_Sign_Entitlements 部分。我不需要任何加密数据 - 只需要已安装证书的名称,以及理想情况下将它们与配置文件相匹配的方法。

他们有文件位置吗?有没有办法通过苹果脚本或类似的方式访问它们?

谢谢!

马修

I'm creating a utility in C# to setup provisions and build settings for an iPhone project.

The XCode project file contains these lines:

            CODE_SIGN_ENTITLEMENTS = ***;
            CODE_SIGN_IDENTITY = ***;
            "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "***";
            ...
            PROVISIONING_PROFILE = ***;
            "PROVISIONING_PROFILE[sdk=iphoneos*]" = "***";

Currently I am getting a list of provisioning profiles from ~/Library/MobileDevice/Provisioning Profiles/ and using some of their plain text values to set up the provisioning section.

I'm wondering if there is any way to access a list of installed certificates to set up the Code_Sign_Entitlements section. I don't need any encrypted data - just the names of installed certificates, and, ideally, a way to match them to the provisioning profiles.

Do they have a file location? Is there any way to access them through apple script or some similar means?

Thanks!

Matthew

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文