After Xcode has updated to version 8.0 (8A218a), I have a problem pulling changes from git repository from Xcode only when some files are conflicted. We are all working on the same branch.
As long as there are no conflicts, everything works perfectly and I am able to commit, pull and push.
But I figured out that whenever we have a conflict in some of the files, Xcode is not showing conflicts anymore. It just closes the pull popup window without showing the conflict resolver window. No info or anything. I don't see the
Pull successful
message. And I can't push my commit (because changes are not pulled) getting the message:
Make sure all changes have been pulled from the remote repository and try again
I have tried pulling using terminal, but the conflicted file gets messed up with git messages showing mine and other people changes in the same conflicted file along those git messages. And the files that other people were working on are now shown as my own changes/additions.
I also tried updating git to the newest version, which is currently 2.10.0. No luck either.
So I end up deleting my copy and cloning the latest one and reapplying changes that i've made which is very annoying.
Does anyone have a solution for this?
EDIT: Here is what you can do as a workaround using the terminal:
Open terminal and tell the system where Xcode utilities live:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Set "opendiff" as the default mergetool globally:
git config --global merge.tool opendiff
Open Xcode mergetool manually and get rid of the conflict the usual way:
git mergetool
Save changes, commit, push.