Search code examples
iosxcodeaugmented-realityarkitiphone-developer-program

Why does ARKit app stop working after a few days?


I developed a simple ARKit app in Unity for iOS. It works great, but there is a strange problem: after several days it stops working. So when I click on the app icon on the iPhone, it opens the app for a millisecond and instantly quits. If I reinstall the app again it works perfectly as before.

Why is it happening? Is there any way to prevent it? I use "Personal team" in Xcode, can it be the reason?


Solution

  • About Provisioning Profile

    Unlike Android, you can’t install unsigned app on your iOS device. It has to be signed by Apple first. However, when you’re developing an app, you probably want to test it before sending it to Apple for approval. Provisioning profile act as a link between the device and the developer account. During development, you choose which devices can run your app and which app services your app can access.

    A free provisioning profile is downloaded from your developer account and embedded in the app bundle, and the entire bundle is code-signed. A Development Provisioning Profile must be installed on each device on which you wish to run your application code. If the information in the provisioning profile doesn’t match certain criteria, your app won’t launch.

    Earlier, a Provisioning Profile used to be valid for 90 days, but is now reduced to 7 days, starting from the time the profile was created. This means that after 7 days, your iOS app (or ARKit app) will merely stop working.

    Apple says: You may create up to 10 App IDs every 7 days.

    enter image description here

    That's why your ARKit app stops working after seven days.

    Read Unity Documentation here: Getting started with iOS development.

    If you wanna change a provisioning profile for existing app, read this useful SO post.


    Apple Developer Programs

    There are several programs for iOS/iPadOS developers:

    • iOS Developer Program ($99)
    • Apple Developer Program for individuals ($99)
    • Developer Enterprise Program for organisations ($299)
    • iOS Developer University Program for higher education institutions (Free)

    Look at this article Choosing a Membership.

    enter image description here

    iOS Developer Program ($99) also allows you use Ad Hoc for free.

    Ad Hoc Distribution Provisioning Profile lets you test your built apps on 100 different devices you have configured in iTunes Connect.