Ad Hoc Distribution - I'm Lost

I’m spending more time trying to get our apps installed than I am programming them. Distributing apps for our team members to test is hit or miss for me. Sometimes I can get the apps to install on their devices, and sometimes not. I’m not sure what steps are required and when. I know HOW to complete the various procedures, but not when and for whom.

I’ve read all the “How To” info on the Apple site, but it just talks about each process individually, not how they are all related and what needs to be done when. I just don’t understand how all the pieces fit together.

Who needs a distribution certificate? Just me, the programmer, or do the people who will be testing the app need one too?

Is there just one distribution certificate, or is there one for each app?

Do I need to send the testers a provisioning profile as a separate file, or is it included in the build?

And what is required when I make changes to the app? Do I need to generate all new certificates and/or profiles each time I send out an update?

Is there anywhere that has a simple cook-book, step-by-step list of things to do for ad hoc distribution of an app?

I found this post extremely helpful:

http://www.fragmentedcode.com/2009/05/05/performing-adhoc-distribution-build-unity-iphone/

It might be a bit out-dated now, but the basic steps should still be the same.

Hi there, I’ll take a stab at some of your questions. It seems like you need to get your head around the purpose of Certificates as opposed to Provisioning Profiles. Certificates are identification verification mechanisms, used to identify you as the person with authority to build the app in various (“provisioned”) modes. Provisioning profiles are just the glue basically between your certificate-signed app bundles and specific devices (in ad hoc mode)…to validate that this ad-hoc built app can indeed run on the device UDID’s you’ve specified on your portal site.

Hope some of this helps:

You need the certificate.

One.

Users will need to install a .mobileprovision file once (until it expires). That provisioning profile can be tied to a single app, or it can be a “wildcard” profile that you can use for multiple apps.

No. When the provisioning profile expires, however, you’ll need to recreate and redistribute that to your testers.

I don’t know (to make a decent recommendation for you). I struggled through this myself and eventually got the hang of things.

BoredKoi,

Thanks. That’s essentially what I thought. But I’m apparently doing something wrong.

I built an app and sent it to one person to test. They installed it, no problem.

So I added some two more devices to the list, updated the provisioning profile, rebuilt the app, and sent it to those two new people. Neither could install it. They got a “signer is not valid” error message. What does that mean?

When I send an app, I include the app and the profile in a zip file. They drag both to their iTunes and sync. Sometimes it works, sometimes it doesn’t. Sometimes the app builds, sometimes it fails. When it works, I’m not sure what I did right, and when it doesn’t, I’m not sure what I did wrong.

Thanks. I’ll go through it in detail, but it looks like what I have been doing.

That error message (“Signer Not Valid”) points to something in the build process in Xcode.

When you distribute your provisioning profiles, you’ll only need to do that once for each test device, until the profile expires. So as you build and release app bundles you can just send those to your testers.

Each time you release an AdHoc build, first check your AdHoc Code Signing settings in Xcode under Project->Edit Project Settings and especially under Project->Edit Active Target.

Other Xcode hoodoovoodoo includes Clean All Targets and (last resort) Xcode->Empty Cache…although I’ve only had to use that rarely and generally only when updating a certificate.

Thanks all. It took several tries, and deleting the Unity Player folder, but I got my app to build and install on another device. I was feeling lucky, so tried a second app and it too worked. I’m on a roll now.

I have a question regarding Ad-hoc distribution. Do the recipients of the App have to have a profile installed on their device? If so, that’s a bit of a pain. e.g. if I make an app for a company, for their internal use only, and i install it on all of their devices, I don’t want to have to keep updating their devices when their certificate runs out.

Or do i have ad-hoc all wrong?

Thanks

BTW the Apple Documentation on this stuff is the worst documentation I’ve ever seen - they don’t even say WHERE certain items are exactly in Xcode menus etc… written by monkeys

since xcode 4 nowhere anymore widely, thats perhaps the reason you don’t find it :wink: it moved widely into the regular editor - project panes.

Where IS Project > Edit Settings and Edit Target??? Can’t see it in IOS5

Ech they need to update all of their documentation then it’s causing me a case of terets (sp) syndrome

A nice person on the internet has done Apple’s job for them, updating the Ad hoc processes for Xcode 4.0 onwards:
http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/

Ad-hoc is for beta-testing, not final distribution. You are limited to 100 devices, and can ask nicely to get another 10 now and then. If you want permanent usage the Enterprise program is what you want, not the regular developer program. This involves another certificate to give to users of the relevant devices which lets them install apps with a special eternal profile. However, this is for your own company, so a freelance programmer would need developer access added from a company representative’s developer account.

One certificate per enterprise (instead of or in addition to Apple’s), one provisioning profile per app. Basically like running your own in-company app store :slight_smile:

Thanks Orb - i had kinda heard of this but didn’t know anything about it.
Just looked at it and it costs $299 a year… hmm … for this instance this isn’t worth spending as the company I’m doing it for won’t fork out that money.

Yeah, it would have to be them who buy the enterprise license. I think the certificates need to be maintained, but if they’re too cheap for $299 per year I guess it’s not important enough for them :wink: