Skip to content

Instantly share code, notes, and snippets.

@dealforest
Last active June 30, 2016 18:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dealforest/c5a5362005bce1a4280c34d18a5bc893 to your computer and use it in GitHub Desktop.
Save dealforest/c5a5362005bce1a4280c34d18a5bc893 to your computer and use it in GitHub Desktop.
#!/bin/bash -eu
temp_dir=`mktemp --directory`
target_dir=/Applications/Xcode-beta.app/Contents/MacOS
if [ -e $target_dir/Xcode.signed ]; then
echo "already exists Xcode.signed"
exit 1
fi
echo "------------------ build unsign ------------------"
echo $temp_dir
cd $temp_dir
git clone git@github.com:steakknife/unsign.git
cd unsign
make
echo "------------------ unsign Xcode binary ------------------"
./unsign $target_dir/Xcode
echo "------------------ replace Xcode binary ------------------"
mv -i $target_dir/Xcode $target_dir/Xcode.signed
mv -i $target_dir/Xcode.unsigned $target_dir/Xcode
echo "------------------ reload Xcode Plugin ------------------"
defaults delete com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-8.0
echo "Please re-boot Xcode-beta.app"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment