问题
We pushed iOS app to Firebase distribution and sent invitations to every tester. Our testers followed all steps and get ready to test the app. Unfortunately, the testers get the message “ The developer needs to update their app so that it can run on your device. You'll get an email once the app is ready to test.“ once they tried to download the app to their iOS. We can be sure that we built the app as a production version.
Can you guys give me ideas for the issue?
回答1:
Thanks guys. My issue is I built my app with export_method was app-store, the right method should have been ad-hoc. I changed my export_method to ad-hoc and it works as I expect.
If someone changed the export_method and still get the error. Please check Vincenzo's answer
回答2:
That message from your tester means that the tester's udid isn't in the provisioning profile of the uploaded app. When a tester registers their device with App Distribution in the tester onboarding flow, App Distribution collects the udid and sends it to you. Thus you would need to add the udid to the provisioning profile, rebuild the app and send it out again.
回答3:
As I'm using the service for the first time, I initially thought I didn't understand how it actually works, or it was too stupid to be true, but then it actually behaved as expected. My first experience worked like this:
I exported my app with my current provisioning file (Developer, not Enterprise) and uploaded it to firebase distribution (1st time).
I sent to my testers a link to download and install an app that they can't use because their device UUID is not registered in my provisioning file.
I got a mail with their device UUID of my first tester and add it to my provisioning file.
I exported again the app and upload it again (2nd time).
It created a new distribution so I sent him a second link to download and install the second version that now should work.
My second tester accepted and I received a second mail..added, exported and uploaded (third time).
This time on console it show a big blue rectangle with the message that the version was updated with new devices and testers will be notified by mail. ( this is how I actually expected it to work ).
What can have happened on my 2nd upload? Would an Enterprise certificate avoid all this device UUID registering part?
回答4:
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
andProject/Building Settings/Signing
shows youiOS Developer
profile under bothDebug
andRelease
not theKeychain
one, but theAutomatic
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
Next
button. Keep in mind that Each method require its own Certificate and Provisioning Profile.. - Choose options ( I left it as is..) and click
Next
button. - 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 theDistribution
certificate 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.
来源:https://stackoverflow.com/questions/58262038/testers-could-not-download-app-from-firebase-app-distribution