xUnique icon indicating copy to clipboard operation
xUnique copied to clipboard

Project file is modified only when there are changes

Open gpambrozio opened this issue 4 years ago • 2 comments

At least for the latest XCode (11.5) XUnique seems to trigger a reload of the project file any time it runs, breaking code completion and bringing my computer to its knees every time I build as it then has to rebuild.

This seems to be because currently the file is changed in place and then reverted back to the old one if there are no changes. This intermediate change seems to get XCode to think the project changed even though XUnique reverts the change.

My changes make the script write the new project file to a separate file first and then only copies over to the project file if there are changes.

gpambrozio avatar Jul 09 '20 22:07 gpambrozio

For anyone interested, until this PR gets merged, you can install a version of xunique including the changes from this PR and the changes from #59 via git+https://github.com/Tonband/[email protected]#egg=xunique

JanNash avatar Nov 14 '20 11:11 JanNash

Also, thanks @gpambrozio for fixing this, I took the liberty of pulling your commit into our repo

JanNash avatar Nov 14 '20 11:11 JanNash