0

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).

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.

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.

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).

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. - forcing the tester to use 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.

Community
  • 1
  • 1
mm24
  • 8,150
  • 11
  • 65
  • 159

2 Answers2

2

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).

All you need to do is modify yourhost.com and yourhost_via_ssh in the bin/mk_ota file.

Rhythmic Fistman
  • 30,464
  • 5
  • 74
  • 138
1

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:

It does substitute in the first part of the UUID a series of letters "F" and change the rest of the uuid:

UUID / UDID / UID:
FFFFFFFFrestofuuid(incorrect)

The safest way to get the correct uuid is to copy it directly using 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). 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. Double check in case you are in doubt. EDIT: API deprecated, see Deprecated UIDevice Methods - Apple Developer

VH-NZZ
  • 4,782
  • 3
  • 26
  • 43
mm24
  • 8,150
  • 11
  • 65
  • 159
  • This is no bug on the UUID finder app part but the UUID API has been deprecated by Apple starting from iOS 7 and now returns a dummy string starting with `FFFFFFFF...`. There is a workaround that'll allow to retrieve the identifier without iTunes though. Check out http://stackoverflow.com/a/20546823/2882550. – VH-NZZ Feb 21 '14 at 09:04
  • Ok. Thanks for the explanation. I was not aware of that. Why has Apple deprecated the UUID now? Is there some other official mechanisms in place to generate certificates? In the developer portal I am still prompted to paste the users UUID.. – mm24 Feb 21 '14 at 09:55
  • Actually, the API had already been deprecated on iOS 5. From what I remember, it is a privacy issue, i.e., identifying a user is OK, identifying a device is not. If you need to identify a user using an API, see https://developer.apple.com/library/ios/documentation/uikit/reference/UIDevice_Class/DeprecationAppendix/AppendixADeprecatedAPI.html and the links therein. As for getting actual UUIDs, the only official mechanism that I know of is iTunes. If you need a more flexible way, see the SO answer of my first comment. HTH. – VH-NZZ Feb 21 '14 at 11:00