简体   繁体   English

无法在Xcode 4.5.1和ios 5.1中使用testflight或diwali安装ipa文件

[英]Unable to install ipa file using testflight or diwali in xcode 4.5.1 and ios 5.1

Hy. HY。

I have developed an IOS app in version 5.1 and xcode 4.5.1. 我已经开发了版本为5.1和xcode 4.5.1的IOS应用程序。 After completing the app when I try to run it in the device using ad hoc distribution, the app is unable to install on device. 当我尝试使用临时发行版在设备中运行该应用程序后,该应用程序无法安装在设备上。 It shows popup "Unable to download application. ' could not be downloaded at this time'". 它显示弹出窗口“无法下载应用程序。'目前无法下载'”。

I have added distribution and developer certificate and it does not give any such alert when installing directly from the xcode but the problem occurs only when installing app from the testflight. 我已经添加了发行版和开发人员证书,当直接从xcode安装时,它不会发出任何此类警报,但是仅当从testflight安装应用程序时,才会出现问题。

Could someone tell me where I m making a mistake. 有人可以告诉我我在哪里犯错。

You must Archive the application using your AdHoc Distribution Cert, then from the Archives tab of the Organizer click Distribute and again select your AdHoc cert. 您必须使用AdHoc分发证书对应用程序进行存档,然后从管理器的“存档”选项卡中单击“分发”,然后再次选择您的AdHoc证书。 The .ipa that this produces is what must be uploaded to TestFlight and you must authorize your device through TestFlight. 生成的.ipa必须上传到TestFlight,并且您必须通过TestFlight授权设备。 Here's some tutorials that will help: 以下是一些有帮助的教程:

Create and Upload an IPA to TestFlight 创建IPA并将其上传到TestFlight

Setting up Permissions for Distribution on TestFlight 设置在TestFlight上分发的权限

If your IPA and permissions are all correct then according to this article the error could be related to one of many other factors: 如果您的IPA和权限都正确,那么根据本文,该错误可能与许多其他因素之一有关:

  • Device storage is full 设备存储空间已满
  • The provisioning profile is a developer provisioning profile 供应配置文件是开发者供应配置文件
  • The ad hoc distribution provisioning profile is corrupted and the device is having an issue with it. 临时分发设置配置文件已损坏,设备与此设备有关。
  • The device was restored from a backup and is causing a conflict for over-the-air distribution 该设备已从备份中还原,并导致无线分发冲突
  • There was a network timeout 网络超时

See the referenced article for details on how to get a console log on the device. 有关如何在设备上获取控制台日志的详细信息,请参见参考文章。 If you still are unable to resolve the issue then edit your question and include the relevant parts of the console log from the device. 如果您仍然无法解决问题,请编辑问题,并从设备中添加控制台日志的相关部分。

Go to Product -> Edit Schema -> Build Configuration 转到产品->编辑架构->构建配置

Change Debug to Release and try it. 将“调试”更改为“释放”并尝试。 在此处输入图片说明

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

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