Last active
June 30, 2016 18:31
-
-
Save dealforest/c5a5362005bce1a4280c34d18a5bc893 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/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 [email protected]: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