truebit / xUnique

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

Project file is modified only when there are changes #56

Open gpambrozio opened 4 years ago

gpambrozio commented 4 years ago

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.

JanNash commented 3 years ago

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/xunique@v4.1.5-Tonband#egg=xunique

JanNash commented 3 years ago

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