Today I decided to experiment a bit with the new SwiftUI and after the Xcode updated, it gave me this really strange error:
Most probably you're missing the /private/tmp directory. So open the terminal and enter the following commands:
> sudo mkdir /private/tmp
> sudo chown -R $(whoami) /private/tmp
Open the Xcode and it should be resolved!
Happy SwiftUI coding! 👨💻