Alright, we found a solution. Finally haha.
You need to get the Apple Distribution certificate and create an App Store provising profile within: https://developer.apple.com/account/resources/certificates/list (Certificates, Identifiers & Profiles) if you haven't already.
Then in XCode you go "Product" -> "Edit Scheme" -> "Archive" change it from debug to release and then archive your project with your app distribution profile you created.
The app will crash if you compile your app directly from xcode using your app distribution profile and it will also crash if you use your apple development profile to App Store/Test Flight.
When compiling use Apple Development Profile when archiving in RELEASE mode use Apple Distribution Profile.
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
Tags: