访问 OSX 上的代码签名证书以构建 XCode 配置实用程序 [C# 首选]
我正在用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论