Many thanks to all of you for the help!
@haptic, @jsequoia, @pax26
I was finally able to solve it. I’m incredibly grateful, since it was extremely important and I was running out of time.
The final solution was to completely delete Xcode via Terminal and then re-download it. The package remains intact, and now everything runs perfectly.
It also works on the devices now. I only had to replace import SwiftCoreUI with import SwiftUI, otherwise everything runs really smoothly.
Topic:
Developer Tools & Services
SubTopic:
Xcode