I was able to solve it, but in a way that isn't useful for our purposes. If you set the minimum deployment target to iOS 17 it works. Unfortunately, we still need to support older iOS versions for many years to come.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: