Ad hoc分发:无法安装应用程序。

4
我正在开发一款iOS应用(仅适用于iPhone),试图让其他人测试。通过 Ad hoc 分发,在我的设备上安装该应用没有任何问题。但在其他人的设备上安装时,总是提示“xxxxx 在此时无法安装”。我正在使用 xcode 5。
以下是我遵循的步骤:
  1. Add the device's UDID to the existing Ad hoc provisioning profile in the developer portal
  2. Download that provisioning profile and drag that to the xcode organizer
  3. Under code signing->provisioning profile->release, choose the Ad hoc provisioning profile. Under code signing identity->release, choose the distribution certificate from the Ad hoc profile. I set the provisioning profile (debug) to none and set the code signing identity(debug) to 'don't code sign'.
  4. Build the app and create an archive.
  5. Click the Distribute button in Organizer. Choose "Save for Enterprise or Ad Hoc deployment" and then select the Ad hoc provisioning profile.
  6. Click export and check "save for enterprise distribution". Fill in the application url and title.
  7. Upload the ipa and plist file to a server. Create an index page which contains a link to the plist file. The link looks like this:

     <a href="itms-services://?action=download-manifest&url=http://mydomainname/apps/myappname.plist">Install Application</a>
    
  8. Send the url of the index page to the tester.

我有遗漏吗?我尝试删除了手机上的所有配置文件,然后通过点击“安装应用程序”链接来安装应用程序,没有出现问题。我注意到一个奇怪的事情是,安装在另一个人的iPhone上的Ad Hoc配置文件的状态为“未找到有效签名标识”,团队显示为“未知”。我看到有人提到了“代码签名授权”。如果我将其留空,会有影响吗?

2个回答

4

尝试以下几个方法:

  1. 检查您在门户网站中添加的UDID是否在AdHoc配置文件下被选中使用。当添加新的UDID时,可能会忘记手动使用新的UDID更新配置文件。
  2. 不要自己创建链接,也不要使用plist。只需将您创建的ipa文件拖动到网站(例如http://www.diawi.com/)上并与测试人员共享链接即可。

祝好运!


6
谢谢。我找到了为什么它没有工作的原因。在xcode的构建设置中,Architectures下的“Build Active Architecture Only”设置为YES。因此,该应用程序只包括iPhone 5的armv7s架构。我的测试人员使用的是iPhone 4s,我本来应该将armv7架构也包含在内。当我将“Build Active Architecture Only”设置更改为NO时,它终于可以在测试人员的iPhone上正常工作了。这里有关于armv7s的更多信息:armv7s - Vaeianor
1
有人可以更新这个回答以适配iPhone 6吗?我在最新版本上遇到了相同的问题,唯一能得出的结论是失败的那个测试人员试图在iPhone 6上安装。其他人使用的是5s或4。 - mobibob
1
@mobibob,你介意发一张那个iPhone 6的照片吗?谢谢未来。 - Segev
哦,你说得对!我的客户发送了他们的UDID进行注册,并说明“操作系统:iPhone OS 7.1 设备:iPhone6,1(iPhone6,1)”;他是一位CIO,所以也许他拿到了一个测试设备 :) - mobibob
6,1只是一部iPhone 5s。 - Segev
@Segev:我使用zip文件创建Diawi链接,但是在某些设备上无法正常工作。如果我使用ipa文件则可以。有什么特殊原因吗? - Hitu Bansal

1
你可能需要检查Xcode项目中的应用程序包标识符与Apple开发者门户上的标识符是否相同。应用程序包标识符是区分大小写的。
这里有一个关于类似安装问题的问题更多答案

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接