Last active
July 29, 2019 11:16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy resolve_conflicts.sh file to the root of your project ( where .xcodeproj package is ) | |
# Open terminal, navigate to the project's folder and run the script using command: sh resolve_conflicts.sh | |
# All credits goes to Sergey Chehuta | |
projectfile=`find -d . -name 'project.pbxproj'` | |
projectdir=`echo *.xcodeproj` | |
projectfile="${projectdir}/project.pbxproj" | |
tempfile="${projectdir}/project.pbxproj.out" | |
savefile="${projectdir}/project.pbxproj.mergesave" | |
cat $projectfile | grep -v "<<<<<<< HEAD" | grep -v "=======" | grep -v "^>>>>>>> " > $tempfile | |
mv $tempfile $projectfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment