3 Replies
      Latest reply on Mar 31, 2019 8:46 PM by KMT
      FBEDevelopers Level 1 Level 1 (0 points)

        So recent I've been investigating the potential of using Ad Hoc Distribution to trial an app, this trial may need to take quite awhile so I am just trying to get all the information about the Ad Hoc method of distributing apps.

         

        So in the Apply Developer documentation there is no indication of how long the app will function on the device, I'm aware that the Ad Hoc Distribution profile has a 1 year exiry date, however if I were to renew this profile would this renew the app on the devices or would I need to reinstall the app annually? There are only 4 users and we are connecting to an in-house developed device so there is no point putting the app onto the app store, so Ad Hoc seemed like the right route but just need to clarify that we won't need to keep reinstalling the app.

        • Re: Ad Hoc Distribution expiry date
          KMT Level 9 Level 9 (14,575 points)

          When the app runs, it check it's profile. If the ad-hoc profile on the device expires, the app will look online for a fresh one. Expired profiles stay on the device until deleted.

           

          About an ad-hoc profile being good for one year..that's max - the app won't function beyond the one year annual period for the account they are made under. If your dev account expires in May, an ad-hoc profile created today won't work past that date. If you renew the account, you'll need to renew distribution/ad-hoc certs, and generate new profiles against them.

            • Re: Ad Hoc Distribution expiry date
              FBEDevelopers Level 1 Level 1 (0 points)

              Hi KMT,

               

              You really are the best! Always see your responses on forums and glad you picked mine up!

               

              So just on renewing distribution/ ad-hoc certs and new profiles against them, does this mean that if for example I create an ad-hoc profile today and my account expires in august, can I create a new cert, and profile after this and have the app still work without buildin the app from Xcode to the device? Or will all apps need a fresh build every year on account renewal?

                • Re: Ad Hoc Distribution expiry date
                  KMT Level 9 Level 9 (14,575 points)

                       >fresh build every year on account renewal?

                   

                  Yes.

                   

                  When an app is signed/built/archived as an ipa w/xode for ad-hoc distribution, it is signed using ad-hoc (mobile) provisioning, against a specific developer certificate.

                   

                  If the app was initially signed/built/archived against a now expired dev cert, a fresh/new profile will not allow it to run. The app in that case needs to be re-signed, rebuilt and re-distributed, along with a new mobile provisioning profile.

                   

                  BTW, I believe the assumption is that one year is usually beyond the typically frequent need to distribute fresh builds during testing. If there are known long delays, I'd suggest to wait on creating a build to be distributed until the testers are ready. I'd not recommend to use ad-hoc as a means of avoiding Apple's approved distribution methods just to be able to casually install apps to selected devices long term, of which there is no approved method.

                   

                  See: h ttps://coderwall.com/p/r5jzzw/creating-an-itunes-ipa-file-for-ad-hoc-distribution-in-30-steps-xcode-for-ios

                   

                  Note the ad-hoc distribution process discussed above is for a Developer Program account, and not to be confused w/a Developer Enterprise Program account inhouse distribution process.