xUnique icon indicating copy to clipboard operation
xUnique copied to clipboard

Sorting does not seem to be determinate

Open mmrussell opened this issue 6 years ago • 4 comments

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 avatar Jun 25 '18 19:06 mmrussell

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.

mmrussell avatar Jun 25 '18 22:06 mmrussell

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

truebit avatar Aug 01 '18 12:08 truebit

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

potmo avatar Nov 18 '22 11:11 potmo

ditto, I have seen PBXShellScriptBuildPhase just moved around randomly.

manojmahapatra avatar May 11 '23 00:05 manojmahapatra