truebit / xUnique

merge Xcode project file is so easy
https://fclef.wordpress.com
Other
1.5k stars 117 forks source link

Sorting does not seem to be determinate #48

Open mmrussell opened 6 years ago

mmrussell commented 6 years ago

Running the xunique command on a pbxproj for the first time resulted in a file that wasn't completely sorted. Running the xunique command again did not fix the sorting. However, after changing the order of any group in Xcode (by dragging a dropping) and running xunique again, the order of an unrelated build step was fixed. On another project, it took three times (modifying the project each time) to get the Xcode project appropriately sorted.

mmrussell commented 6 years ago

I looked into this further. The problem seems to be that not all objects are sorted by the script even though all object UUIDs are changed. Certain unrelated changes to the project in Xcode causes Xcode to sort objects with the new GUID that didn't get sorted by xunique.

truebit commented 6 years ago

Could you send me the .xcodeproj file if it's OK? you could find my email in this project.

potmo commented 1 year ago

I have a similar (or same) issue that elements PBXShellScriptBuildPhase are constantly moved around. Im not sure if xcode does it or xUnique does it but I get diffs on pbxproj all the time even though I havent touched anything in it

manojmahapatra commented 1 year ago

ditto, I have seen PBXShellScriptBuildPhase just moved around randomly.