I found that the error goes away by using a fresh bundle identifier and signing with a new provisioning profile.
Xcode 12.x is enough and the build works fine on ios 15.
Not a solution obviously, but works until apple fixes this.
Topic:
App & System Services
SubTopic:
Core OS
Tags: