Editor placeholder in source file

hi everyone I am trying to follow some titular (learning metal), I have an error "Editor placeholder in source file" on the swift.print, someone knows why? My code:




class  mainView: MTKView {

    required init(coder: NSCoder) {

        super.init(coder: coder)

    }

    

    override func draw(_ dirtyRect: NSRect) {

        Swift.print("hello")

    }

}

Sometimes, Xcode might pick us some old errors and show them. Please try Clean Build Folder or restarting Xcode or restarting your mac and see what happens.

What happens if you just compile ? In many cases, if undue, the error clears.

Editor placeholder in source file
 
 
Q