Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Add support for Xcode 8.0, for those who removed the Xcode app signature #488

Merged
merged 1 commit into from
Sep 14, 2016
Merged

Add support for Xcode 8.0, for those who removed the Xcode app signature #488

merged 1 commit into from
Sep 14, 2016

Conversation

alanhamlett
Copy link
Contributor

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.

@jurre
Copy link
Collaborator

jurre commented Sep 14, 2016

Fair enough. 👍

@alanhamlett
Copy link
Contributor Author

alanhamlett commented Sep 14, 2016

Thanks!

@guillaumealgis
Copy link
Member

guillaumealgis commented Sep 14, 2016

👍

Approved with PullApprove

@kattrali kattrali merged commit 21f12d8 into alcatraz:master Sep 14, 2016
@alanhamlett
Copy link
Contributor Author

One last thing is needed, to bump the Alcatraz version.

@summertian4
Copy link

👍

@pvinis
Copy link

pvinis commented Sep 19, 2016

we also need a new release and refresh of the install script.

@summertian4
Copy link

summertian4 commented Sep 19, 2016

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?

@orta
Copy link
Contributor

orta commented Sep 22, 2016

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

@guillaumealgis
Copy link
Member

Just released Alcatraz 1.2.0. Thanks everyone for your patience!

@mindz-eye
Copy link

mindz-eye commented Sep 28, 2016

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.

@Sooongz
Copy link

Sooongz commented Sep 29, 2016

@mindz-eye me too

@mindz-eye
Copy link

@Sooongz
looks like mds service stucks for some reason causing spotlight related APIs hang... Killing mds fixes the issue until the next Xcode relaunch.

@Sooongz
Copy link

Sooongz commented Oct 7, 2016

@mindz-eye thanks man , but 'sudo killall mds' don't work for me

@erikolofsson
Copy link

erikolofsson commented Oct 22, 2016

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.

@mindz-eye
Copy link

@erikolofsson
it works, thanks a lot!

@pincheira
Copy link

@erikolofsson sadly this broke my Xcode setup:

$ open -a xcode
LSOpenURLsWithRole() failed for the application /Applications/Xcode.app with error -10810.

screen shot 2016-11-14 at 10 48 08

@erikolofsson
Copy link

@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.

@userow
Copy link

userow commented Feb 28, 2017

@erikolofsson
Worked for me too. Thanks!

  1. Dropped an apple-signed Xcode.app
  2. Term - defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
  3. git clone https://github.com/alcatraz/Alcatraz.git
  4. added a UDID received on step 3. to a project's Info.plist
  5. build
  6. actions, described in your comment

No freezes in Xcode

@AlexMorgun
Copy link

How about that example about using Xcode extension? https://github.com/Otbivnoe/XShared

@StarWars
Copy link

StarWars commented Apr 7, 2017

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:

  1. https://github.com/fpg1503/MakeXcodeGr8Again - use this tool, don't check the option to replace your current Xcode installation with XcodeGr8 app.
  2. perform 1-5 steps from @userow comment
    That's it.

@scue
Copy link

scue commented Sep 30, 2017

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.

@NikKovIos
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.