'How can I rename files in a swift package in Xcode?

I don't want to rename a swift package. I want to rename files in the swift package. When I click on a file and wait until Xcode decides to bless me by highlighting the file so I can rename it, that moment never comes with Swift Packages. enter image description here



Solution 1:[1]

one way is to open the file in Finder and rename it there. This would be problematic in a regular project, but because swift packages are just folders without a .pbxproj file, it works just fine.

1. enter image description here

2. enter image description here

3.

enter image description here

4.

enter image description here

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 ScottyBlades