I had to enable "Automatically manage signing", then it worked.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: