xcode iOS 使用其他人的 .p12 和 .mobileprovision 发布 IPA
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24529061/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iOS Release IPA using someone else's .p12 & .mobileprovision
提问by Alon Amir
I'm trying to build & release an IPA and sign it with someone else's (The customer) .p12 file and a .mobileprovision.
我正在尝试构建和发布 IPA,并使用其他人(客户)的 .p12 文件和 .mobileprovision 对其进行签名。
What I do not have is their apple developer account user and password combination (I only have my own user and password which are not related).
我没有的是他们的苹果开发者帐户用户名和密码组合(我只有自己的用户名和密码,没有关系)。
How can I build and release it using their certificate which I mentioned before (enterprise distribution)?
如何使用我之前提到的他们的证书(企业分发)构建和发布它?
I'm using Xcode Version 5.1.1 (5B1008)
我使用的是 Xcode 版本 5.1.1 (5B1008)
I have imported the p12 file, and it appears to be fine and visible in keychain. In Xcode, I have set the correct bundle id, and under "Code Signing"->"Release" I have chosen their imported certificate with came with the p12 file ("iPhone Distribution: xxxx"). But when I click Product>Archive, build fails with message '.... no provisioning profile matching the identity "iPhone Distribution: xxxx" was found.' (I put the xxxx there for anonymity).
我已经导入了 p12 文件,它在钥匙串中看起来很好并且可见。在 Xcode 中,我设置了正确的包 ID,在“代码签名”->“发布”下,我选择了带有 p12 文件(“iPhone 发行版:xxxx”)的导入证书。但是,当我单击“产品”>“存档”时,构建失败并显示消息“.... 找不到与身份“iPhone 分发:xxxx”匹配的配置文件。(我把 xxxx 放在那里是为了匿名)。
Note- Before I'm flamed with "Possible duplicate of..." comments, please know that I have looked into other questions and could not find a working solution.
注意 - 在我被“可能重复...”评论之前,请知道我已经调查了其他问题,但找不到可行的解决方案。
Thanks.
谢谢。
回答by Shamsudheen TK
You have to import the .p12 and the related provisioning profile properly.
您必须正确导入 .p12 和相关的配置文件。
Delete your existing certificate from Keychain. Open Keychain Access Manager. Navigate to File > Import Items.
Browse to the .p12 or .pfx file that you want to import and open it.
Select System in the Keychain drop-down and click Add.
Enter the admin password (if Asked) to authorize the changes.
Enter the password that created by customer when he generated the .p12 file and click Modify Keychain.
Next, Remove your old provisioning profile and get & add the .p12 related provisioning profile.
In Xcode, Under Target-->Build settings-->provisioning profiles, select the correct provisioning profile from the pull-down menu. Make sure that you are not doing it under the project section instead of Target.
从钥匙串中删除您现有的证书。打开钥匙串访问管理器。导航到文件 > 导入项目。
浏览到要导入的 .p12 或 .pfx 文件并打开它。
在钥匙串下拉菜单中选择系统,然后单击添加。
输入管理员密码(如果询问)以授权更改。
输入客户生成.p12文件时创建的密码,点击修改钥匙串。
接下来,删除旧的配置文件并获取并添加 .p12 相关的配置文件。
在 Xcode 中,在 Target-->Build settings-->provisioning profile 下,从下拉菜单中选择正确的配置文件。确保您没有在 project 部分而不是 Target 下执行此操作。
Hope this will work fine.
希望这会正常工作。