Open swift package with xcode directly, xcode not showing the `Save as` dialog when I add new file

OS: macOS 12.3.1 21E258 arm64
Host: MacBookPro18,3
Kernel: 21.4.0
Xcode: 13.3.1 (13E500a)

I used to have the correct flow

  • new file -> choose file template (Swift File) -> save as (name the file).

Now I have the wrong flow

  • new file -> choose file template (Swift File)
  • xcode not show up the save as dialog, just give me File.swift directly.

This problem only happend if I open the swift package directly.

When I do swift package generate-xcodeproj, and open with .xcodeproj. It will work correctly.

Does any one know how to fix this?

Open swift package with xcode directly, xcode not showing the `Save as` dialog when I add new file
 
 
Q