Our project files are sorted alphabetically.
It’s not clear what you mean: are you just manually sorting the files in your target’s Build Phases → Compile Sources list in Xcode? By my experiment in 14.2, hand sorting that list still works correctly and persists as expected.
Or are you modifying the underlying .pbxproj file outside of Xcode? I imagine Apple’s response would be something like: don’t do that because it’s not supported.
I suspect the latter since your screenshot shows the PBXBuildFile section of the project file. That’s not the section that defines the order of the user-visible Compile Sources list.
If you don’t modify the project file outside of Xcode, do you still experience unwanted changes to the file every time it is opened?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: