This happened to me and the reason turned out to be that the app was still "Waiting for Review." One quick solution is to add a an "Internal Testing" group through app store connect.
It worked for me!
Topic:
App Store Distribution & Marketing
SubTopic:
TestFlight
Tags: