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

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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source