Get CouldNotGetAppContainerError when preview

I’am new to macOS development. I follow the Apple’s SwiftUI Tutorials to create my first macOS app. when I preview the ContentView.swift, I got this error CouldNotGetAppContainerError:

I has already google it and guess it is related to Signing problem. I try to change Signing Certificate to “Sign to Run Locally”, but it does’t work.

note: I am using an apple id without enrolling Apple Developer Program.

Someone has any idea?

I solved it, just update xcode to latest version