[Xcode] Could not open file. (/Users/$USERNAME/go/src/$PRJNAME)

I want to open a project in Xcode that I got from the terminal with go clone.

But, when I try to open it by selecting Open a project or file, I get the following error in a popup.

Could not open file. (/Users/$USERNAME/go/src/$PRJNAME)

How can I open it?

Tried:

  • I've tried uninstalling and reinstalling, but the same error occurs.
  • Xcode > Preferences > Accounts is No Accounts, but the same error occurs.

Env:

  • macOS Big Sur 11.5.1
  • Xcode 12.5.1(12E507)

(Translation by DeepL)

Is it a full project or a single text file ? If text file, you may try to open in an editor and then copy and paste in a file to create in your Xcode project.

[Xcode] Could not open file. (/Users/$USERNAME/go/src/$PRJNAME)
 
 
Q