自 iOS 7 发布以来,不会为添加到配置文件的设备安装 Ad Hoc iOS .ipa 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18980783/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 01:37:50  来源:igfitidea点击:

Ad Hoc iOS .ipa file won't install for devices added to profile since iOS 7 came out

iosprovisioning-profileios-provisioningad-hoc-distributionhockeyapp

提问by Mick Byrne

I have an iOS app that I've developing for a while. Initially there were around 8 devices in the iOS dev account, ad builds were prepared and distributed through Hockey App, no problems. Recently, we've added a bunch more devices, but for some reason the ad hoc builds won't install on those devices (but continues to install just fine on the original set).

我有一个开发了一段时间的 iOS 应用程序。最初,iOS 开发者帐户中有大约 8 台设备,广告构建是通过 Hockey App 准备和分发的,没有问题。最近,我们添加了更多设备,但由于某种原因,临时构建不会安装在这些设备上(但在原始设备上继续安装得很好)。

I have been over and over the certificates, devices and provisioning profiles in the iOS Dev Center. I've triple checked all the Build Settings in XCode. The app is for iOS 6 and iOS 7 only. It is built in XCode 5. I've tried installing the app through HockeyApp and direct through iTunes.

我在 iOS 开发中心一遍又一遍地查看证书、设备和配置文件。我已经三重检查了 XCode 中的所有构建设置。该应用程序仅适用于 iOS 6 和 iOS 7。它内置于 XCode 5。我尝试通过 HockeyApp 安装该应用程序并直接通过 iTunes。

When attempting to install the app on a device, this is the output from the console:

尝试在设备上安装应用程序时,这是控制台的输出:

Sep 24 21:45:02 Micks-iPad itunesstored[88] : LaunchServices: updating placeholder for com.purifier.ios with icons
Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/3119681654421541181.app" requested by itunesstored
Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Installing app com.purifier.ios
Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 install_application: Installing placeholder
Sep 24 21:45:03 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Staging: 0.01s; Waiting: 0.00s; Installation: 0.14s; LS Sync: 0.00s; Overall: 0.15s
Sep 24 21:45:06 Micks-iPad itunesstored[88] : LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.purifier.ios (Placeholder) withPhase:0
Sep 24 21:45:06 Micks-iPad lsd[74] : LaunchServices: Updating installState for parent  to LSInstallStateWaiting
Sep 24 21:45:06 Micks-iPad lsd[74] : LaunchServices: Updating installPhase for parent  to 0
Sep 24 21:45:19 Micks-iPad SpringBoard[33] : Killing com.purifier.ios for app installation
Sep 24 21:45:19 Micks-iPad itunesstored[88] : LaunchServices: installing app for existing placeholder LSApplicationProxy: com.purifier.ios (Placeholder)
Sep 24 21:45:19 Micks-iPad itunesstored[88] : LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.purifier.ios (Placeholder) withPhase:1
Sep 24 21:45:19 Micks-iPad lsd[74] : LaunchServices: Updating installPhase for parent  to 1
Sep 24 21:45:19 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/3119681654421541181/-915963357124799252" requested by itunesstored
Sep 24 21:45:20 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Installing app com.purifier.ios
Sep 24 21:45:20 Micks-iPad installd[62] : profile not valid: 0xe8008012
Sep 24 21:45:20 Micks-iPad installd[62] : 0x304000 install_embedded_profile: Could not install embedded profile: 0xe8008012
Sep 24 21:45:21 Micks-iPad securityd[77] : OCSPResponse: now > latestNextUpdate
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.AFwPty/foo_extracted/Payload/Purifier.app/Purifier: 0xe8008015
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.AFwPty/foo_extracted/Payload/Purifier.app
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 install_application: Could not preflight application install
Sep 24 21:45:22 Micks-iPad itunesstored[88] : 0x441000 MobileInstallationInstallForLaunchServices: failed with -1
Sep 24 21:45:22 Micks-iPad itunesstored[88] : ERROR: MobileInstallationInstallForLaunchServices returned nil
Sep 24 21:45:22 Micks-iPad lsd[74] : LaunchServices: installation failed for app com.purifier.ios
Sep 24 21:45:22 Micks-iPad itunesstored[88] : LaunchServices: installPhaseFinishedForProgress: com.purifier.ios.Installing -  called, removing progress from cache
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: API failed
Sep 24 21:45:31 Micks-iPad SpringBoard[33] : Killing com.purifier.ios for app installation

I've tried absolutely everything I can think of. Any help, even ideas about how to diagnose the problem, would be greatly appreciated.

我已经尝试了我能想到的一切。任何帮助,甚至有关如何诊断问题的想法,都将不胜感激。

采纳答案by neilco

Here's the source of your problem:

这是您的问题的根源:

Sep 24 21:45:20 Micks-iPad installd[62] : profile not valid: 0xe8008012

9 月 24 日 21:45:20 Micks-iPad 已安装 [62]:配置文件无效:0xe8008012

0xE8008012 is "The UUID of the device does not match any in the Provisioning Profile being loaded"

0xE8008012 是“设备的 UUID 与正在加载的配置文件中的任何内容都不匹配

Check and double-check the UUIDs associated with the profile in the Provisioning Portal and make sure you're using the correct and currentprofile to sign the app. Also check you only have the current developer certs in your keychain. Remove any previous certs.

检查并仔细检查与配置门户中的配置文件关联的 UUID,并确保您使用正确的当前配置文件对应用程序进行签名。还要检查您的钥匙串中是否只有当前的开发人员证书。删除任何以前的证书。

回答by Mick Byrne

The problem was that the UDID was wrong (thanks @neilco). The reason the UDID was wrong was because the UDID app I'm using is giving the wrong UDID as of iOS7.

问题是 UDID 是错误的(感谢 @neilco)。UDID 错误的原因是因为我使用的 UDID 应用程序在 iOS7 中给出了错误的 UDID。

I checked a bunch of other UDID apps and they're all giving the wrong UDID in iOS7. It seems that anything that starts with a bunch of FFFFFFFF... is wrong.

我检查了一堆其他 UDID 应用程序,它们在 iOS7 中都给出了错误的 UDID。似乎任何以一堆 FFFFFFFF... 开头的东西都是错误的。

Back to bloody iTunes...

回到该死的 iTunes...

回答by CW0007007

Ensure you re-download the provisioning profile after adding the new devices to it.

确保在添加新设备后重新下载配置文件。

You need to edit the profile and tick the new devices in the list. Then re-dwonload it.

您需要编辑配置文件并在列表中勾选新设备。然后重新下载它。

回答by Hemant Singh Rathore

xcode open organizer -> Select devices -> in left pane select provisioning profile from the top delete your current provisioning profile. Download updated provisioning profile from your developer account and now try to build your .ipafor new devices.

xcode 打开管理器 -> 选择设备 -> 在左窗格中选择顶部的配置文件,删除您当前的配置文件。从您的开发者帐户下载更新的配置文件,现在尝试为新设备构建您的.ipa

Don't forget to update provisioning in devices.

不要忘记更新设备中的配置。

回答by user2908142

Please note that Apple has changed the UDID retrieval API due to privacy concerns. So, I don't think you may use some of those older apps to get the UDID. You can connect your device to your PC/Mac and get the UDID using iTunes (or XCODE). In iTunes, click on the Serial Number and it will change to UDID (once the phone is connected to the computer and you click the device in iTunes)

请注意,出于隐私考虑,Apple 已更改 UDID 检索 API。因此,我认为您不会使用其中一些较旧的应用程序来获取 UDID。您可以将设备连接到 PC/Mac 并使用 iTunes(或 XCODE)获取 UDID。在 iTunes 中,单击序列号,它将更改为 UDID(一旦手机连接到计算机并在 iTunes 中单击设备)

回答by Shakeel Ahmed

Swift 4 if you need to install it as development for testing Please Edit the Provisioning Profile or if you have no Provisioning Profile for this app then the unable to install in the device so please then create new Provisioning Profile and select all the devices and then rebuild IPA and install it simple

Swift 4 如果您需要将其安装为开发测试请编辑配置文件,或者如果您没有此应用程序的配置文件,则无法在设备中安装,因此请创建新的配置文件并选择所有设备,然后重建IPA并安装简单