Reputation: 1136
when i choose file, and find refactor->rename, it indicate Xcode can only refactor C or Object-C code. is that mean i can never change my file name?
Of course, if i directly change file name in disk, that will give me error.
Upvotes: 2
Views: 4029
Reputation: 457
To rename a C++ file in Xcode as of version 9 you can either
You have to fix all the references yourself after renaming C++ files.
Upvotes: 0
Reputation: 31952
You can certainly change it the old fashioned way. Slow double tapping a file name in the Project tree lets me rename it. After that you just need to fix all references to this file (compile -> fix errors) and you are done.
Upvotes: 3