内部应用安装后消失

时间:2023-01-12 17:45:50

I'm currently building an iPhone app for a client which will be distributed in-house. My Client has just created their Enterprises Developer account in Apple.

我目前正在为一个客户开发一个iPhone应用程序,它将在内部发布。我的客户刚刚在苹果创建了他们的企业开发者账户。

I have created a website for the client to download test versions of the app wirelessly, through instructions given by apple here: Distributing Enterprise Apps for iOS 4 Devices. These tests have been done through my Standard account using an Adhoc profile which has their devise UDID's listed.

我已经创建了一个网站,让客户可以通过苹果公司给出的指令,无线下载该应用的测试版本:为iOS 4设备分销企业应用程序。这些测试是通过我的标准帐户进行的,使用了一个特别的配置文件,其中列出了他们的设计UDID。

I am now trying the deploy the app using their Enterprises account. I created the In-house provisioning file. I also created an archive of the app and created the .ipa file for distribution using this profile.

我现在正在使用他们的企业账户尝试部署应用程序。我创建了内部配置文件。我还创建了应用程序的存档,并创建了.ipa文件,以便使用这个概要文件分发。

The problem I am having occurs when I try to download the app. When I go to the site I created to download the app, I can see the app downloading on my iPhone, the wording under icon says: "Loading...". Then the wording changes to "Installing...". Once the progress bar finishes the app disappears. I also noticed the in-house provisioning files installed on my device.

当我尝试下载应用程序时,我遇到的问题是:当我到我创建的网站下载应用程序时,我可以看到iPhone上的应用程序下载,图标下的文字写道:“加载…”。然后措辞改为“安装…”。一旦进度条完成,应用程序就会消失。我还注意到设备上安装的内部配置文件。

I repeated the process several times on multiple devices, both devices that are I have used for testing this app and those I have not even used this app in. I even tried removing all the provisioning files on one device. Same process happens and the in-house provisioning file gets automatically installed again.

我在多台设备上重复了好几次这个过程,这两款设备都是我用来测试这个应用的,而我甚至还没有在这个应用中使用过。我甚至尝试删除一个设备上的所有供应文件。同样的过程也会发生,内部配置文件也会自动重新安装。

What exactly is wrong or am I not doing?

我到底做错了什么?

Thanks.

谢谢。

6 个解决方案

#1


62  

I experienced the same problem with one of my in-house apps. The reason was that bundle ID in application manifest was specified incorrectly. After I fixed bundle ID, the application installs normally.

我的一个内部应用也遇到了同样的问题。原因是应用程序清单中的bundle ID被不正确地指定。固定bundle ID后,应用程序正常安装。

#2


10  

The issue for me was that my download plist file had a different bundleID than my agent's bundleID. Fixing the download plist file worked for.

对我来说,问题在于我的下载plist文件与我的代理的bundleID不同。修改下载的plist文件。

Alternatively a restart also worked, but it was a big pain everytime.

或者,重启也有效,但每次都很痛苦。

#3


4  

I used bundle ID - com.myname.{appId} in app info.list file. But my OTA manifest file i used com.myname.* because of this issue my install fails. I changed both places com.myname.APPName then works like smart.

我使用了bundle ID - com.myname。{ appId }在应用信息。文件列表。但是我的OTA manifest文件我使用com.myname。由于这个问题,我的安装失败了。我换了两个地方。然后APPName像smart一样工作。

#4


2  

**

* *

I have had exactly same issue and got it resolved by following below steps.

**

* *

Issue description To clarify, issue (app not installing properly - icon disappears after installation) was occurring only on iOS device (Android version of the same app build was working fine).

问题描述澄清,问题(app不正确安装-图标在安装后消失)只发生在iOS设备上(同一app构建的Android版本运行良好)。

Source of issue In my case issue was cased by the fact that test iPad device I was using, was not registered (added) to the Developer Provisioning Profile my app was using.

在我的案例问题中,问题的根源在于我正在使用的测试iPad设备没有注册(添加)到我的应用正在使用的开发人员配置文件中。

Lesson learn That means iOS Developer App can not be installed on any given test device until this device is added to the Provisioning Profile (PP). Important information also is that once device is added to PP, new PP needs to be generated and App has to be signed using this new PP to complete handshake.

教训是,iOS开发者应用程序不能安装在任何给定的测试设备上,直到这个设备被添加到配置文件(PP)中。重要的信息是,一旦设备被添加到PP中,就需要生成新的PP,并且必须使用这个新的PP签名来完成握手。

Steps to fix

步骤来修复

  1. Login to Apple Developer https://developer.apple.com
  2. 登录到苹果开发者https://developer.apple.com
  3. Navigate to 'Certificates, Identifiers & Profiles' -> 'Devices'
  4. 导航到“证书、标识符和配置文件”—>“设备”
  5. After verifying you device is not listed here, Click on '+' 内部应用安装后消失
  6. 在验证你的设备不在这里列出后,点击'+'
  7. Fill out 'Name' and 'UDID' of you test device and click 'Continue' 内部应用安装后消失
  8. 填写测试设备的“名称”和“UDID”,点击“继续”
  9. Once device is added to the list, generate new PP by navigating to 'Provisioning Profiles' -> 'Development' -> Click on you existing PP -> 'Edit' -> check you newly added device in 'Devices' section -> click 'Generate' -> 'Download' -> 'Done' 内部应用安装后消失
  10. 一旦设备被添加到列表中,通过导航到“供应配置文件”—>“开发”—>单击您现有的PP—>“编辑”—>检查您在“设备”部分新添加的设备—>单击“生成”—>“下载”—>“完成”
  11. Use your newly downloaded PP to sign the new Development App
  12. 使用你新下载的PP来签署新的开发应用
  13. Install new App on the test device
  14. 在测试设备上安装新的应用程序
  15. Celebrate success
  16. 庆祝成功

#5


1  

Is the device's OS version below the app's Deployment Target OS level?

设备的OS版本是否低于应用的部署目标OS级别?

If so, lower the app's Deployment Target in the Ad Hoc Build settings for the Target, or upgrade the device's OS.

如果是这样,在目标的特别构建设置中降低应用程序的部署目标,或者升级设备的操作系统。

#6


0  

If anyone else has this issue, make sure you have registered the device you're testing on and that device is also registered to the provision you're using

如果其他人有这个问题,请确保您已经注册了您正在测试的设备,并且该设备也注册到您正在使用的设备

#1


62  

I experienced the same problem with one of my in-house apps. The reason was that bundle ID in application manifest was specified incorrectly. After I fixed bundle ID, the application installs normally.

我的一个内部应用也遇到了同样的问题。原因是应用程序清单中的bundle ID被不正确地指定。固定bundle ID后,应用程序正常安装。

#2


10  

The issue for me was that my download plist file had a different bundleID than my agent's bundleID. Fixing the download plist file worked for.

对我来说,问题在于我的下载plist文件与我的代理的bundleID不同。修改下载的plist文件。

Alternatively a restart also worked, but it was a big pain everytime.

或者,重启也有效,但每次都很痛苦。

#3


4  

I used bundle ID - com.myname.{appId} in app info.list file. But my OTA manifest file i used com.myname.* because of this issue my install fails. I changed both places com.myname.APPName then works like smart.

我使用了bundle ID - com.myname。{ appId }在应用信息。文件列表。但是我的OTA manifest文件我使用com.myname。由于这个问题,我的安装失败了。我换了两个地方。然后APPName像smart一样工作。

#4


2  

**

* *

I have had exactly same issue and got it resolved by following below steps.

**

* *

Issue description To clarify, issue (app not installing properly - icon disappears after installation) was occurring only on iOS device (Android version of the same app build was working fine).

问题描述澄清,问题(app不正确安装-图标在安装后消失)只发生在iOS设备上(同一app构建的Android版本运行良好)。

Source of issue In my case issue was cased by the fact that test iPad device I was using, was not registered (added) to the Developer Provisioning Profile my app was using.

在我的案例问题中,问题的根源在于我正在使用的测试iPad设备没有注册(添加)到我的应用正在使用的开发人员配置文件中。

Lesson learn That means iOS Developer App can not be installed on any given test device until this device is added to the Provisioning Profile (PP). Important information also is that once device is added to PP, new PP needs to be generated and App has to be signed using this new PP to complete handshake.

教训是,iOS开发者应用程序不能安装在任何给定的测试设备上,直到这个设备被添加到配置文件(PP)中。重要的信息是,一旦设备被添加到PP中,就需要生成新的PP,并且必须使用这个新的PP签名来完成握手。

Steps to fix

步骤来修复

  1. Login to Apple Developer https://developer.apple.com
  2. 登录到苹果开发者https://developer.apple.com
  3. Navigate to 'Certificates, Identifiers & Profiles' -> 'Devices'
  4. 导航到“证书、标识符和配置文件”—>“设备”
  5. After verifying you device is not listed here, Click on '+' 内部应用安装后消失
  6. 在验证你的设备不在这里列出后,点击'+'
  7. Fill out 'Name' and 'UDID' of you test device and click 'Continue' 内部应用安装后消失
  8. 填写测试设备的“名称”和“UDID”,点击“继续”
  9. Once device is added to the list, generate new PP by navigating to 'Provisioning Profiles' -> 'Development' -> Click on you existing PP -> 'Edit' -> check you newly added device in 'Devices' section -> click 'Generate' -> 'Download' -> 'Done' 内部应用安装后消失
  10. 一旦设备被添加到列表中,通过导航到“供应配置文件”—>“开发”—>单击您现有的PP—>“编辑”—>检查您在“设备”部分新添加的设备—>单击“生成”—>“下载”—>“完成”
  11. Use your newly downloaded PP to sign the new Development App
  12. 使用你新下载的PP来签署新的开发应用
  13. Install new App on the test device
  14. 在测试设备上安装新的应用程序
  15. Celebrate success
  16. 庆祝成功

#5


1  

Is the device's OS version below the app's Deployment Target OS level?

设备的OS版本是否低于应用的部署目标OS级别?

If so, lower the app's Deployment Target in the Ad Hoc Build settings for the Target, or upgrade the device's OS.

如果是这样,在目标的特别构建设置中降低应用程序的部署目标,或者升级设备的操作系统。

#6


0  

If anyone else has this issue, make sure you have registered the device you're testing on and that device is also registered to the provision you're using

如果其他人有这个问题,请确保您已经注册了您正在测试的设备,并且该设备也注册到您正在使用的设备