简体   繁体   English

带有分配证书的房屋内分配问题

[英]In House Distribution issue with distribution certificate

My first question here, and I have tried everything and googled like hell and couldn't find an answer to this issue. 我在这里的第一个问题,我已经尝试了一切,谷歌搜索地狱般,找不到这个问题的答案。

So I have a client for whom I have to make an iOS distribution via in House distribution system (they don't want their app on the store but will use it in corporate use with over 20 devices, so the AdHoc UDID system is out of the question). 因此,我有一个客户,我必须通过内部分发系统进行iOS分发(他们不想在商店中使用他们的应用,但可以将其与超过20种设备一起用于企业用途,因此AdHoc UDID系统已经淘汰了问题)。

Now, the client has given me Admin roles on their Enterprise account and I have done the following: 现在,该客户已向我授予其企业帐户的管理员角色,并且我已执行以下操作:

  1. Downloaded the production certificate 下载了生产证书
  2. Installed the .p12 file from the client on my keychain 从我的钥匙串上的客户端安装了.p12文件
  3. Created the app id 创建了应用程序ID
  4. Created the provisioning profile and downloaded it too 创建了配置文件并也下载了它

Now, I do manage to archive the app and install it on my device, but then the app crashes like right after the splash screen. 现在,我确实设法存档了该应用程序并将其安装在我的设备上,但是随后该应用程序崩溃,就像在启动屏幕之后一样。 It is to my understanding that there is an issue with the production certificate, and I am clueless. 据我了解,生产证书存在问题,我一无所知。 Any help or advice would be greatly appreciated. 任何帮助或建议,将不胜感激。

An enterprise-signed app won't allow a debug connection. 企业签名的应用程序将不允许调试连接。 if you want install app in device, you should create archive .ipa and install. 如果要在设备中安装应用,则应创建存档.ipa并进行安装。

for debug app in device you need to signed app using AdHoc provisional profile of individual developer account. 对于设备中的调试应用,您需要使用单个开发者帐户的AdHoc临时配置文件对应用进行签名。

After some time I have managed to solve this little issue. 一段时间后,我设法解决了这个小问题。 The main problem was not the .p12 but the bundle ID itself. 主要问题不是.p12而是包ID本身。 Since most of the times I was getting an error that the bundle ID was not matched with the provided provisioning profile. 由于大多数时候,我都收到错误消息,即捆绑包ID与提供的配置文件不匹配。 So what I did is: 所以我所做的是:

  1. Edited the app id on the Apple Dev Site from an old name, ie com.potato.PotatoApp into com.lemon.PotatoApp (the main reason I had to do this is cuz' my default ID is my company's ID, and in this scenario I had to use the client's Apple Dev Account, and thus the ID itself. 在Apple Dev Site上将应用程序ID从旧名称(即com.potato.PotatoApp)编辑为com.lemon.PotatoApp (我这样做的主要原因是因为我的默认ID是我公司的ID,在这种情况下我必须使用客户的Apple Dev Account,以及ID本身。

  2. Edited the provisioning profile by selecting the newly edited app id, and then changing the name from " PotatoApp " to " PotatoApp inHouse " 通过选择新编辑的应用程序ID,然后将名称从“ PotatoApp ”更改为“ PotatoApp inHouse ”,来编辑配置文件。

  3. Downloaded the newly edited profile. 下载了新编辑的配置文件。

  4. On the Debug settings, this was the corresponding list: -Provisioning profile (debug & release): " PotatoApp inHouse " -Code signing identity (debug & release): " iPhone distribution: Lemon Company Ltd. " 在Debug设置上,这是相应的列表:-Provisioning配置文件(调试和发布):“ PotatoApp inHouse ”-代码签名身份(调试和发布):“ iPhone发行版:Lemon Company Ltd.

Also on the team list changed from " Potato Company Ltd. " to " Lemon Company Ltd. ", after that a simple Archive and the build was created without any issues. 在此之后,团队名单也从“ Potato Company Ltd. ”更改为“ Lemon Company Ltd. ”,之后创建了一个简单的存档,并且构建没有任何问题。

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

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