Last active
February 16, 2016 19:08
-
-
Save JohannMG/36efcb285a0a2d85a2c9 to your computer and use it in GitHub Desktop.
Thanks to Kendall Helmstetter Gelner on SO for this script to clean up the xcode project after a merger
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
#!/bin/sh | |
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 | |
cp $projectfile $savefile | |
mv $tempfile $projectfile | |
#http://stackoverflow.com/questions/2615378/how-to-use-git-properly-with-xcode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment