Since you are using Xcode13, the problem may not be because of the code signature of our apps(You can check your code signature if you want: https://developer.apple.com/documentation/xcode/using-the-latest-code-signature-format), but due to the code signature of one of the dependencies, and removing the dependency solves the problem.
In my case, I remove the dependencies one by one, and eventually found that the culprit is FirebaseAnalyticsOnDeviceConversion.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: