Have you found a solution? I have encountered the same problem. My macOS app is a nested program that contains a complete app. After installing TestFlight, running it reports that the provisioning profile is invalid; Delete the apps within the app and transfer the external apps separately to TestFlight. The program runs normally.
Topic:
App & System Services
SubTopic:
Core OS
Tags: