为什么我会提示“无法下载”无线 iOS 应用程序分发结束时?

发布于 2024-10-13 02:25:58 字数 1100 浏览 10 评论 0原文

我正在为 iPhone 和 iPad 开发 iOS 应用程序。它在模拟器和实际设备上运行良好。使用 iTunes 和 iPhone 配置实用程序安装时不会出现错误。然而,我似乎无法让无线分布正常工作。

健全性检查:

  1. 我拥有 Apple 开发人员许可证。
  2. 我拥有来自 Provisioning Portal 的有效开发人员证书。
  3. 我已在配置门户中添加了设备的 UDID。
  4. 我已在配置门户中创建了有效的 AppID。
  5. 我创建了一个分发配置文件。 开发者配置文件似乎不适用于此。
  6. 我已单击正确的上述设备以针对给定的配置文件激活。
  7. 我已下载并安装了证书和配置文件。
  8. 发布版本可与 iTunes 和 iPhone 配置实用程序完美安装。
  9. 对于无线分发,我遵循 Apple 的说明:我设置了正确的 .ipa、.mobileprovision 和 .plist 文件,并将其托管在 LAMP Web 服务器上(按照 Apple 的说明添加了正确的 MIME 类型)。
  10. .plist 文件格式正确。
  11. .mobileprovision 和 .plist 文件的 URL 是正确的。
  12. .mobileprovision 文件可通过 iOS 设备的 Safari 浏览器正确下载并安装。
  13. iOS 设备的 Safari 浏览器正确处理 .plist 文件,找到 .ipa 文件,并提示安装并显示消息“[我的域名]想要安装‘[我的应用程序名称]’”。我单击“安装”软按钮。
  14. 安装从典型的灰色版本的应用程序图标和从左到右的蓝色进度条开始。图标的文字最初是“正在加载”,然后变为“正在安装”。 “安装”几秒钟后,会显示一条警告:“无法下载‘[我的应用程序名称]’”。系统会提示我“完成”和“重试”软按钮。 “重试”当然只是重复该过程并再次失败。 “完成”退出安装,片刻之后,应用程序图标消失。

需要明确的是,这可以通过 iTunes 和 iPhone 配置实用程序完美安装。我读过无数关于如何实现这一点的博客和文章,但似乎没有人有明确的答案。有谁能想到这里出了什么问题吗???提前致谢。拉我的头发。

I'm developing an iOS app for iPhone and iPad. It runs great on the simulators and actual devices. It installs without error using both iTunes and the iPhone Configuration Utility. I cannot, however, seem to get wireless distribution to work properly.

Sanity checks:

  1. I have an Apple developer license.
  2. I have a valid developer certificate from the Provisioning Portal.
  3. I have added my device's UDID in the Provisioning Portal.
  4. I have created a valid AppID in the Provisioning Portal.
  5. I have created a distribution provisioning profile. Developer profiles don't seem to work for this.
  6. I have clicked the proper aforementioned device to be active for the given provisioning profile.
  7. I have downloaded and installed the certificate and provisioning profile.
  8. A release build installs perfectly with both iTunes and the iPhone Configuration Utility.
  9. For wireless distribution, I have followed Apple's instructions: I have proper .ipa, .mobileprovision, and .plist files setup and hosted on a LAMP web server (with the proper MIME types added per Apple's instructions).
  10. The .plist file is properly formatted.
  11. The URLs to the .mobileprovision and .plist files are correct.
  12. The .mobileprovision file downloads and installs properly via an iOS device's Safari browser.
  13. The iOS device's Safari browser properly processes the .plist file, finds the .ipa file, and prompts for install with a message "[my domain name] would like to install '[my app name]'". I click the "Install" soft button.
  14. Installation commences with the typical grayed version of the application icon and blue progress bar that proceeds from left to right. The icon's text is at first "Loading", and then changes to "Installing". After several seconds of "Installing", an alert is displayed: "Unable to download '[my app name]'". I am prompted with "Done" and "Retry" soft buttons. "Retry" of course just repeats the process and fails again. "Done" exits installation, and after a moment, the app icon disappears.

Just to be clear, this installs PERFECTLY via iTunes and the iPhone Configuration Utility. I have read countless blogs and articles on how to get this working, but no one seems to have definitive answers. Is there ANYONE that can think of what is going wrong here??? Thanks in advance. Pulling my hair out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

戏蝶舞 2024-10-20 02:25:58

NovaJoe——我非常不愿意查看您的链接,因为它似乎显示您需要企业开发人员许可证......

我想我已经明白了。阅读第一段和第一个要点: http:// developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html

这可以解释为什么所有有线部署方法都有效,但无线分布总是失败。看来需要企业开发者帐户。 >.<

但是,事实并非如此!我能够通过完成以下操作成功部署:

  1. xcode 组织者中删除应用程序存档
  2. 从 xcode 项目中的
  3. :清理/清理所有目标,然后使用组织者中的开发人员开发证书进行构建和存档,选择重新- 添加应用程序存档,并选择
    共享...
  4. 对于识别,选择用于构建应用程序的相同开发证书并“保存到磁盘”

您现在将拥有一个可以使用的 .ipa 文件,但为了注册远程安装,您仍然需要为启动进程而生成的 plist 文件(并指向新的 .ipa)。

总结一下 - 遵循企业流程,然后将生成的企业 .ipa 替换为非企业 .ipa

NovaJoe -- I was pretty discouraged to review your link as it does appear to read that you need Enterprise Developer license...

I think I figured it out. Read the first paragraph and first bullet point: http://developer.apple.com/library/ios/#featuredarticles/FA_Wireless_Enterprise_App_Distribution/Introduction/Introduction.html

This would explain why all wired deployment methods work, but Wireless Distribution always fails. Enterprise developer account is required, it seems. >.<

But, this is not the case! I was able to successfully deploy by completing the following:

  1. removing app archive from xcode organizer
  2. in the xcode project: clean/clean all targets, then build and archive with the developer development certificate
  3. in organizer, select the re-added application archive, and select
    Share...
  4. For Identify, pick the Same Development Cert used to build the app and 'save to disk'

You now will have an .ipa file that will work, but in order for the remote-install to register, you will still need the plist file that is generated (and pointed to the new .ipa) for the process to initiate.

So to summarize -- follow enterprise process, then replace generated enterprise .ipa with non-enterprise .ipa

总攻大人 2024-10-20 02:25:58

我认为这最终只是一个配置文件问题。从来没有真正深入到确切问题的根源,但我发现了一个很棒的工具,它使整个过程对我来说超级简单:测试版生成器

I think it wound up just being a provisioning profile issue. Never REALLY got to the bottom of the exact issue, but I found a great tool that makes the whole process SUPER easy for me: Beta Builder

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文