简体   繁体   English

XCode bot与iOS模拟器的集成

[英]XCode bot integration with iOS simulator

I am trying to integrate bot for simulator only but still getting code signing error. 我正在尝试仅将Bot集成到模拟器中,但仍然出现代码签名错误。 Why? 为什么?

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0' CodeSign错误:SDK'iOS 7.0'中的产品类型'Application'需要代码签名

I also copied Provisioning Profiles from "~/Library/MobileDevice/Provisioning Profiles/" to "/Library/MobileDevice/Provisioning Profiles/" as mention Here 我也是从复制部署配置文件"~/Library/MobileDevice/Provisioning Profiles/" to "/Library/MobileDevice/Provisioning Profiles/"作为提这里

But my problem is not solved :( 但是我的问题没有解决:(

Is it possible to configure bot for simulator only? 是否可以仅将Bot配置为模拟器?

Plz help 请帮助

After a couple of weeks, I think I've finally figured this out. 几周后,我想我终于明白了。 In your project, under build settings, you have a Code Signing Identity set. 在项目的构建设置下,您将设置一个“代码签名身份”。 I currently have all of them set to my iPhone Developer ID, which is included in the Provisioning Profile that I have set (also in Build Settings.) In order to get the Xcode server the ability to use these keys, you need to get them onto the server. 目前,我已将所有这些设置为我的iPhone Developer ID,该ID已包含在我设置的Provisioning Profile中(也包含在Build Settings中)。为了使Xcode服务器能够使用这些密钥,您需要获取它们到服务器上。 Here's what I did: 这是我所做的:

1) Open up Keychain Access.app on the machine where you created your developer certificate(s) 1)在创建开发人员证书的计算机上打开Keychain Access.app

2) Select My Certificates from Category 2)从类别中选择我的证书

3) Right click (Ctrl-click) on your Certificate and Select Export "iPhone Developer:…"… 3)在您的证书上单击鼠标右键(按住Ctrl键单击),然后选择“导出” iPhone Developer:…”…。

4) Save the Certificate as a .p12 file (Keychain Access will prompt you for a password to encrypt the file, and for an admin password) 4)将证书另存为.p12文件(“钥匙串访问”将提示您输入密码以加密文件,并输入管理员密码)

5) Transfer the .p12 file to your Xcode Server 5)将.p12文件传输到Xcode服务器

6) Double click on the .p12 file, and import it into the System keychain on the server. 6)双击.p12文件,然后将其导入服务器上的系统钥匙串。 Make sure it's the System Keychain and not the login Keychain. 确保它是系统钥匙串,而不是登录钥匙串。

7) Right click on the private key, (You need to click the disclosure triangle, to expose it) and select Get Info. 7)右键单击私钥,(您需要单击显示三角形以使其暴露),然后选择“获取信息”。

8) In the Access Control tab, select Allow all applications to access this item and then click on Save Changes. 8)在“访问控制”选项卡中,选择“允许所有应用程序访问此项目”,然后单击“保存更改”。

Viola! 中提琴! Now your Xcode bot will be able to sign your code. 现在,您的Xcode机器人将能够对您的代码进行签名。

My next tests will include setting my Distribution profile and Certificate, so that the product that the bot creates can be used for distribution in the app store. 我的下一个测试将包括设置我的分发配置文件和证书,以便该机器人创建的产品可用于在应用商店中分发。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM