简体   繁体   English

无法使用iTunes 11和iOS 7在临时分发测试设备上安装配置文件

[英]Unable to install provisioning profile on ad-hoc distribution test devices using iTunes 11 and iOS 7

It seems like that there is a problem installing ad hoc distribution apps using iTunes 11. I found out that the specific problem is that the provisioning profile never gets installed on the devices , which causes the application installation to fail and block (the icon stays black). 似乎使用iTunes 11 安装临时发行版应用程序时出现问题 。我发现特定的问题是, 配置文件从未安装在设备上 ,这导致应用程序安装失败并被阻止(图标保持黑色) )。

Use case: distribute ad hoc apps to iOS 7 tester devices that do not have XCode and without having to use third party webservices like testflight . 用例:将临时应用分发到不具有XCode且不必使用诸如testflight之类的第三方Web服务的iOS 7测试器设备。

Installation success when: I install my app on an iPad with iOS 7 with a profile installed using iTunes 10 when it was running iOS 7. This because the profile is still valid. 在以下情况下安装成功:我将应用程序安装在装有iOS 7的iPad上,并且在运行iOS 7时使用iTunes 10安装了配置文件。这是因为该配置文件仍然有效。

Installation fail when: I install the app on a new device running iOS 7 via iTunes 11. Looking at : Settings->General->Profiles I do not find any profiles in this case (despite I copied them on iTunes and sync the device). 在以下情况下安装失败:我通过iTunes 11 运行iOS 7的新设备上安装了该应用程序, 查看 :设置->常规->配置文件在这种情况下,我找不到任何配置文件(尽管我在iTunes上复制了它们并同步了设备) 。

Hence what I need to find out is how to install provisioning profiles on a iOS 7 tester device with or without using iTunes 11 and without: - using third parties software like TestFlight . 因此,我需要了解的是如何在使用或不使用iTunes 11以及不使用iTunes 11的情况下,如何在iOS 7测试仪设备上安装配置文件:-使用第三方软件(例如TestFlight) - forcing the tester to use XCode -强制测试人员使用XCode

Any help/suggestion? 任何帮助/建议吗?

PS: Good old times when It used to be possible to install the device by just dragging and dropping it on the iTunes 10 icon and then synchronizing it with the device. PS:过去的好时光以前可以通过将设备拖放到iTunes 10图标上,然后将其与设备同步来安装设备。

The situation is way better than "the good old times". 这种情况比“美好的过去”要好得多。 You can install both the ad hoc provisioning profile and app directly on the device by directing the user to a specially constructed web page . 通过将用户定向到特殊构建的网页,您可以直接在设备上安装临时配置配置文件和应用程序。

That link is a little old. 该链接有点旧。 I've created a rough script that creates an over-the-air install from the ad-hoc IPA file you create in the Xcode Organizer (although enterprise would probably work too). 我已经创建了一个粗糙的脚本 ,该脚本可以通过您在Xcode Organizer中创建的临时IPA文件创建无线安装(尽管企业也可以使用)。

All you need to do is modify yourhost.com and yourhost_via_ssh in the bin/mk_ota file. 您所需要做的就是修改bin/mk_ota文件中的yourhost.comyourhost_via_ssh

Solved! 解决了!

The issue was that had sent to my collaborators the UUID finder App which apparently has a bug (at least on iOS 7 devices) because it gets the wrong uuid : 问题是已经发送给我的合作者一个UUID finder App,该App显然存在错误 (至少在iOS 7设备上存在错误 ),因为它收到了错误的uuid

It does substitute in the first part of the UUID a series of letters "F" and change the rest of the uuid: 它确实在UUID的第一部分中替换了一系列字母“ F”,并更改了uuid的其余部分:

UUID / UDID / UID:
FFFFFFFFrestofuuid(incorrect)

The safest way to get the correct uuid is to copy it directly using iTunes. 获取正确的uuid的最安全方法是直接使用iTunes复制它。 One you have the correct ad hoc distribution certificate (with the right uuid) then send it to the tester and ask to reinstall (by dragging and dropping it on iTunes and then Synchronizing or by sending it via email and opening the mail from the device - which will prompt the user to an installation process). 您拥有正确的临时分发证书(具有正确的uuid),然后将其发送到测试仪,并要求重新安装(通过将其拖放到iTunes上,然后进行同步,或者通过电子邮件发送并通过设备打开邮件-这将提示用户进行安装过程)。 To check if it is installed on the testers device in the general settings menu. 在常规设置菜单中检查它是否已安装在测试仪设备上。

Notes: I sent the UUID finder App a couple of weeks ago (as of 23 December 2013), so the current version of UUID finder may be working correctly. 注意:我是在几周前(截至2013年12月23日)发送UUID finder App的,所以当前版本的UUID finder可能工作正常。 Double check in case you are in doubt. 如有任何疑问,请仔细检查。 EDIT: API deprecated, see Deprecated UIDevice Methods - Apple Developer 编辑:不推荐使用API​​,请参阅推荐使用的UIDevice方法-Apple Developer

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

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