简体   繁体   English

iPhone ad-hoc发布howto?

[英]iPhone ad-hoc distribution howto?

how do I do an ad-hoc distribution profile? 如何进行临时分发配置文件?

Been reading many links but I think there is something that I'm still missing. 一直在阅读许多链接,但我认为有些东西我仍然缺少。 Just can't figure out what. 只是无法弄清楚是什么。

Here are the steps that I took 以下是我采取的步骤
1. a team member sent me his UDID 1.团队成员向我发送了他的UDID
2. I add his phone to "devices" under the dev portal 2.我将他的手机添加到开发门户下的“设备”

Then this is what I did to create the ad-hoc profie 然后这就是我创建ad-hoc profie所做的
1. go to "provisioning" then "distribution" on my dev portal 1.在我的开发门户网站上转到“配置”然后“分发”
2. add "new profile" and select "ad-hoc" for the Distribution Method radio button 2.添加“新配置文件”并为“分发方法”单选按钮选择“ad-hoc”
3. select the "wildcard" App id 3.选择“通配符”应用程序ID
4. select all phones. 4.选择所有手机。
5. download the certificate on someone's machine and install it 5.在某人的机器上下载证书并安装它

So team member gave me the UDID and I gave him back a .mobileprovisioning file and the app binary. 所以团队成员给了我UDID,然后我给了他一个.mobileprovisioning文件和app二进制文件。 That doesn't work. 这不起作用。

This is the error that I see on XCode - "A valid signing identity matching this profile could not be found in your keychain". 这是我在XCode上看到的错误 - “在您的钥匙串中找不到与此配置文件匹配的有效签名身份”。

If I try to install anyway by dragging the app into XCode, I get "A valid provisioning profile for this executable was not found" 如果我尝试通过将应用程序拖入XCode来安装,我得到“找不到此可执行文件的有效配置文件”

Please enlight, 请点亮,
Tee T恤

A major step that a lot of developers forget to do is to add the code signing entitlements file to their project. 许多开发人员忘记做的一个重要步骤是将代码签名权利文件添加到他们的项目中。

Inside XCode add a new file to the Resources group of your project. 在XCode内部,将新文件添加到项目的Resources组中。 Choose the Code Signing Category in the template dialog. 在模板对话框中选择代码签名类别。 You will want to choose the Entitlements. 您需要选择权利。 Once this is added, highlight it in XCode and uncheck the "get-task-allow" value. 添加完成后,在XCode中突出显示它并取消选中“get-task-allow”值。

You will then want to go Get Info on your XCode project and under the Build tab, go to the Code Signing section. 然后,您需要在XCode项目上获取“获取信息”,然后在“构建”选项卡下,转到“代码签名”部分。 Under Code Signing Entitlements, put the name of the file you added. 在Code Signing Entitlements下,输入您添加的文件的名称。 Make sure you have your Cert/Profile pair selected under the Code Signing Identity. 确保在代码签名标识下选择了您的证书/配置文件对。 Once you build with these settings, you can hand the .ipa or .app file along with the .mobileprovision file to your user and you should be all set. 使用这些设置构建后,您可以将.ipa或.app文件与.mobileprovision文件一起提交给您的用户,您应该全部设置。

Are you actually creating a build that is signed with your distribution certificate? 您实际上是在创建使用您的分发证书签名的构建吗? The docs on the developer program portal are very complete, I don't know that anyone here would be able to do a better job of explaining the process. 开发人员计划门户网站上的文档非常完整,我不知道这里的任何人都能够更好地解释这个过程。 Make sure to look at the Distribution > Prepare App 确保查看分发>准备应用程序

Make sure you see the following in the OS X Keychain Access application (in the login section): 确保在OS X Keychain Access应用程序中(在登录部分中)看到以下内容:

  • A private key with your organization's name. 具有组织名称的私钥
  • A certificate attached to the above private key named iPhone Developer: Organization Name 附加到上述私钥的证书 ,名为iPhone Developer:Organization Name

Make sure your provisioning profile is located in ~/Library/MobileDevice/Provisioning Profiles . 确保您的配置文件位于~/Library/MobileDevice/Provisioning Profiles

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

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