What will happen when iOS provisioning profile will expire - ios

I would like to know what will happen with an app in mdm store or on a device when the provisioning profile will expire. Following provisioning profiles are in my interest: developer, ad-hoc, App Store, entreprise developer, entreprise ad-hoc, entreprise in-house.

The app that already installed on the devices would not open, it would crash on launch.
App would not be able to install on new devices.
That apply only for an app that has been distributed outside of Appstore.
If the app was downloaded from Appstore and you invalidate/expire it's Appstore certificate, nothing would happen to it.

Related

How to replace App on Apple store with expired provisioning profile (distribution) certificate

Our team had published App on Apple Appstore 2 year ago. After that we lost its code due mac hardware issue. Now we have made new App and want to replace existing app on Apple store. However provisioning profile (distribution) certificate with which app was submitted 2 years ago is expired. Can I submit App update with new distribution certificate???
When your certificate expires, the provisioning profiles using that certificate will become invalid. On App Store, the app will still work as long as you’re enrolled in the development program. All the ad hoc builds signed with that certificate won’t work anymore. When revoking a distribution certificate the below scenarios will occur for your users:
When you revoke a certificate that means that any app that is not deployed onto a device (not hosted by AppStore) will no longer be valid. Existing users can continue to use the app.
When you revoke a certificate and your App is being hosted on the AppStore; users that have already installed the app will not be affected. New users that go to install the app will not be affected.
When you revoke a certificate and your App is being hosted in-house (internally) and users download it via OTA; users that have already installed the app will not be affected. New users that go to install the app will not be able to install it. Please note this is based off of behavior we have experienced from Apple.
Revoking a certificate will not affect the ability to update existing apps regardless of whether they are AppStore or in-house apps.

What is the purpose of the App Store provisioning profile?

I know the obvious answer : it's for distributing apps on the app store. But I have an app approved for release on iTunes Connect with no App Store profile. I just have an Ad Hoc distribution profile installed. What purpose does an App Store distribution profile serve ? I submit my apps through the Test flight program, is it not a problem as long as the build was verified and approved ? I don't want to risk the app somehow not working once it's on the app store.
To understand what is the purpose of App store provisioning profile we need to check the difference between them first.
Ad-Hoc Distribution :
By using this, App can be installed on 100 devices designated by the developer on his provisioning portal. We can prepare build using this only for beta testing or demos.
App-store Distribution :
By using this we can prepare build of the App to deploy to App store submission.
Your case:
As you mentioned that you submitted app with using ad-hoc distribution profile & its approved & ready for sale now.
Try to install that live app on the device, for which UDID is not added to Ad-hoc distribution profile. It will not allow to install.
That is the only difference.
I hope it will help you.
If your app made it this far and was approved for release, you're fine. In all probability if you go to the Member Center you'll find that an app store distribution profile was generated for you.
This should be helpful:
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html
Code signing is used in combination with your App ID, provisioning profile, and entitlements to ensure that:
Your app is built and signed by you or a trusted team member.
Apps signed by you or your team run only on designated development devices.
Apps run only on the test devices you specify.
Your app isn’t using app services you didn’t add to your app.
Only you can upload builds of your app to iTunes Connect.
If you choose to distribute outside of the store (Mac only), the app can’t be modified and distributed by someone else.

ios distribution provisioning profile deleted

My app is online now, and users can download it from app store. I accidentally deleted the distribution provisioning profile it uses from my developer center and would this affect users to download my app from app store?
No this will not make any effect on your live apps.

Does deleting certificates and provisioning profiles from developer.apple.com influence itunes connect?

I want to delete as much as possible from Apple Developer (certificates, provisioning profiles, ...), but I don't want to mess up the apps that I have submitted to app store using these certs and profiles.
So does Apple Developer influence iTunes to get connected? What may and what surely won't happen if I mess up things in Apple Developer?
The certs and profiles are necessary for packaging your app for debug on a device or for submitting your app.
It has nothing to do with your iTunes Connect.
As long as you have a valid, paid Apple Developer account, nothing will happen to your apps.

What happens when provision profile expires?

When I add my provisioning profile to Xcode through the Organizer, I can see that the profile is set to 3 month duration only.
My question is, if I deploy an app to the test device using the above profile. And after 3 months of the app installed on the device, if I open the app would it work or the app will fail to load due to the expired profile?
How does it usually work?
The app will fail to launch due to the expired profile. You will need to renew the provisioning profile and install that renewed profile on the device; or rebuild and reinstall the app with another non-expired profile. A developer also has to keep their $99 developer enrollment from expiring in order to keep being able to renew or create new provisions.
Ad Hoc profiles have longer expiration dates. But if you want an app that doesn't expire, the only alternative for stock OS iOS devices is to have it approved by Apple and then download it from the App store. After you download the app, you have the option of removing it from sale.

Resources