My Enterprise app is being distributed with a Provisioning profile (oldPP) that expires in 3 months. I have created a new provisioning profile (newPP), placed it on a device which has my app already installed. Now there are 2 profiles, I can see them when I hook up the device with the App Configurator 2 tool.
Using this link i was able to get the expiry date of the embedded provisional profile (oldPP)
I also tried
let urls = Bundle.main.urls(forResourcesWithExtension: "mobileprovision", subdirectory: nil)
But this only returns url of (oldPP) which is in my main app bundle. Where is (newPP) located? I just cannot figure it out.
My goal eventually is to notify the user after opening the app with a message if the latest profile is expiring. For this I need to read the expiry dates on both (oldPP) and (newPP).