Failed to build ContentView.swift - failed to code sign

I am having the issue above with the preview. However, display in the simulator works fine.


Any hint how I can resolve that, please?

Replies

on Xcode 11, my Code Signing Identity is set to Apple Development. Is it the same for you?

run this command in terminl

sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer

but for first copy the xcode beta to applications folder