Build errors on Xcode 14.2

When trying to build a small Swift Script on Xcode 14.2, I got 2 errors:

Unexpected input file: /Users/####/Documents/Xcode/Project1/Project1/ContentView.Swift

Command SwiftDriver emitted errors but did not return a nonzero exit code to indicate failure

Could somebody please explain what these errors mean

Build errors on Xcode 14.2
 
 
Q