Closed alanhamlett closed 7 years ago
Fair enough. 👍
Thanks!
One last thing is needed, to bump the Alcatraz version.
👍
we also need a new release and refresh of the install script.
I read an article about "use Alcatraz with Xcode 8"
the author say "removed the Xcode signature will lead to the Xcode instability", Is it true?
Until there's a new release, this will install Alcatraz for you, then clean up after itself:
git clone https://github.com/alcatraz/Alcatraz.git
cd Alcatraz
xcodebuild
cd ..
rm -rf Alcatraz
Just released Alcatraz 1.2.0. Thanks everyone for your patience!
Does anyone experience issues with unsigned Xcode freeze from time to time? This usually happens when tccd daemon wakes up and starts to examine each and every file in Xcode bundle. Killing both doesn't solve the problem though :( Xcode sample reveals that UI thread is locked on xpc connection caused by an attempt to create a file.
Sorry for offtopic.
@mindz-eye me too
@Sooongz looks like mds service stucks for some reason causing spotlight related APIs hang... Killing mds fixes the issue until the next Xcode relaunch.
@mindz-eye thanks man , but 'sudo killall mds' don't work for me
I have found that unsigning Xcode stops XPC services such as debugging as root from working. The following takes care of this (if you paste it all, make sure that sudo has cached your password first):
pushd "$TMPDIR"
export XcodeLocation=/Applications/Xcode.app
cp "$XcodeLocation/Contents/MacOS/Xcode" .
codesign -s - -f --timestamp=none "Xcode"
sudo cp Xcode "$XcodeLocation/Contents/MacOS/"
cp "$XcodeLocation/Contents/Developer/usr/bin/xcodebuild" .
codesign -s - -f --timestamp=none "xcodebuild"
sudo cp xcodebuild "$XcodeLocation/Contents/Developer/usr/bin/"
popd
sudo xattr -rc "$XcodeLocation"
sudo spctl --add --label "Xcode" "$XcodeLocation"
I suspect that this will take care of any freezing issues as well.
Before doing this you will need a clean copy of Xcode. So if you have unsigned it already you will need to reinstall.
@erikolofsson it works, thanks a lot!
@erikolofsson sadly this broke my Xcode setup:
$ open -a xcode
LSOpenURLsWithRole() failed for the application /Applications/Xcode.app with error -10810.
@jpincheira I suspect that the commands failed for some reason or other. If you post the output of running the script I could tell you why.
Make sure that you start out with a clean version of Xcode that hasn't been unsigned, and that you have run sudo before pasting commands into console, or put the commands in a bash script and run that instead.
@erikolofsson Worked for me too. Thanks!
defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
git clone https://github.com/alcatraz/Alcatraz.git
No freezes in Xcode
How about that example about using Xcode extension? https://github.com/Otbivnoe/XShared
For those of you who need safe process, that results in 2 Xcodes being installed on your device (codesigned & plugins ready), here is what to do:
Xcode 9 install success:
gem install update_xcode_plugins
update_xcode_plugins --unsign
cd /tmp
git clone https://github.com/alcatraz/Alcatraz.git
cd Alcatraz
xcodebuild
All done, if you want to restore:
update_xcode_plugins --restore
Then, the Xcode will resigned. Enjoy it.
I know about #475, but those of us who have removed the app signature from Xcode 8 would still like to use Alcatraz. Therefore we should add the Xcode 8 DVTPlugInCompatibilityUUID because it won't cause any issues for those who have not unsigned Xcode 8.