I want to sort the files in the \'Compile Sources\' section of my Xcode project according to their names. Is it possible?
This is thoroughly answered, but I thought I'd share the Emacs command that sorted these in place for me. Navigate to project.pbxproj
, mark all files under PBXSourcesBuildPhase
, and use the command:
M-3 M-x sort-fields
...aka sorting the marked area by the 3rd column, which happens to be the filenames. C-x C-s
and you're on your way.