After I add new files to a group, the newly written pbx file would contain that new file at the END of the group. But, Xcode by itself would sometimes re-sort the whole list according to the file UUID. This leads to a bunch of unintended xcodeproj change when I use Xcode to open and make some unrelated changes and save.
After I add new files to a group, the newly written pbx file would contain that new file at the END of the group. But, Xcode by itself would sometimes re-sort the whole list according to the file UUID. This leads to a bunch of unintended xcodeproj change when I use Xcode to open and make some unrelated changes and save.
For example, one of such diff:
As you can see, those "-" lines were originally added using node-xcode, and those + lines are Xcode helped me to sort it.
It will be great if you can sort the objects by key when writing.