I finally got it working after days of luck trying. Basically you need to toggle to Release Mode, and then try to re-add your associated domains. By then, you should have generated a new file called AppRelease.entitlements, if so, you can upload to test flight again, it shall work both in test flight and production.
Good Luck !!!
Topic:
Code Signing
SubTopic:
Entitlements
Tags: