I finally got to resolve the problem.
The whole problem has to do with Provisioning Profiles.
When you have to export for Firebase App Distribution is clearly stated in their docs that an ad-hoc export should be used, but the whole procedure and options are sparsely explained..
So here are the necessary steps:
- In your developer account generate a new Distribution certificate.
- Generate a new profile for distribution.
- For the new profile select the right AppId, the Distribution certificate, choose ad-hoc, and select the Device UUIDs you want(the tester's)
- In Xcode keep Automatic signing checked, and use your Developer profile.
- Make sure to update your profile:Xcode/Preferences `Download Manual Profiles' button.
- Make sure that in both
Target/Building Settings/Signing and Project/Building Settings/Signing shows you iOS Developer profile under both Debugand Release not the Keychainone, but the Automatic one, else select it yourself.
- Archive the project.
Product/Archive.
- Export the .ipa:
- If Xcode doesn't get you to the organiser window open it
Windows/Organizer
- Select the proper App(from the left ìOS Apss`column) and archived file ( the latest is at the top of the list.
- Choose
Distribute App button.
- Select a distribution method (Ad Hoc in this case)and click
Nextbutton. Keep in mind that Each method require its own Certificate and Provisioning Profile..
- Choose options ( I left it as is..) and click
Nextbutton.
- Re-signing the App is where things go wrong, keep
Automatic ( here is where Xcode connects to your Developer account and sign the app with the Distributioncertificate and profile.
- Once all the compiling has finished just click
Export button.
- Choose where to store the files on your computer and click
Export.
Hope this step-by-step guide will be helpful to others..as the whole process is described very unclearly explained by the docs and puzzling all the info is quite frustrating..
Cheers.