Ionic3 app Crashes on Distribution but works on TestFlight - iOS

Recently we have updated our Xcode to comply with new Apple requirements since March 2019, but since then I’ve been having problems to get my Ionic 3 app working in production.

Once the app is downloaded and installed on the device in production, launches but closes immediately.

Wierd thing is it works perfectly on TestFlight.

My app is just 25MB and is very simple.

One thing I noticed is the “Missing Purpose String in Info.plist File” message I recieved from apple to my email when I compile to TestFlight.

I have removed the libraries and functionality related with location (GPS) but I am still getting the same “Missing Purpose String in Info.plist File”.

I am wondering if this is related with permits that are only enforced in production and not in TestFlight lately.

Have happen to any of you? Any suggestion it will be greatly appreciated. Thank you

Somewhere there is still a reference to accessing the GPS sensor. You might remove the ios platform and reinstall it, that might reset the issue.

You might check the config.xml file and see if something is left in there.