Open pvinis opened 8 years ago
thats the error i get btw.
you probably need to selfsign each of the plugins too.
use the under code in terminal to deal with this problem!
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID`
Does this work for anybody else?
Awesome,it works for me. thanks a lot.
Okay it works.
Btw the problem was github formatting ate the ` characters in @AMEstudio's post (because it also means code snippet formatting).
The corrected command is:
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID`
Note: If it crashes for you, it's probably one of the plugins (not Alcatraz) so you should move all the plugins out of ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
and then move them back one by one, always testing which one causes Xcode to crash.
Has anyone had success with 8.1? I had it working on 8.0 but now not working again following same steps as last time...
I'm answering my own question for 8.1:
Paste this into the bottom of the DVTPlugInCompatibilityUUID Array
DA4FDFD8-C509-4D8B-8B55-84A7B66AE701
Thanks, @DoctorG. Interestingly, after following the described steps, I get the message on xCode launch about loading the non-Apple bundle, however, Package Manager still doesn't show. Stumped.
Mine now doing the same. Can't explain. 😒
Sent from my iPhone 7+
On Nov 22, 2016, at 5:47 PM, Brett Wellman notifications@github.com wrote:
Thanks, @DoctorG. Interestingly, after following the described steps, I get the message on xCode launch about loading the non-Apple bundle, however, Package Manager still doesn't show. Stumped.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
I made it work with xvim.
@MKGitHub maybe you can explain more ....
I get a conclusion : Xcode 8.1 Sierra
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID
again.en it works for me !
I had to use sudo
for step # 3
did not work for me.
tried three kind of the find & xargs commands:
I just copy and pasted the commands provided in this discussion thread.
after a few experiments, the following code worked for me:
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $(defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID)
alternatively, save the following code as a .sh file:
// code begins xcodeid="$(defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID)"
echo "${xcodeid}"
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $xcodeid // code ends
do "chmod 755 yourfilenamehere.sh" to make it executable, then you can use it by running "sh yourfilenamehere.sh"
Actually, the "defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID" should be quoted by the symbol (`) (the ESC key), not the symbol (\\') or the symbol (') (the key in the left of ENTER key)
OR just do as @mediter said.
Thanks for the explanation @oxoxoxox ! Quite a detail! No wonder it didn't work for me.
8.2 worked too !
1.do as https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md 2.do what galambalazs did. 3.find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $(defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID)
it works for xcode8.2
Bookmarked! Genius!!
Great! I just have got my Wakatime and GitDiff back!
8.2.1 works too.
Here is exactly what I did:
$ sudo codesign -f -s XcodeSigner /Applications/Xcode.app
$ git clone https://github.com/XVimProject/XVim.git
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
$ make
Press y to use XVim with your Xcode version
$ git clone https://github.com/alcatraz/Alcatraz.git
$ find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID`
Good Luck.
@yweiquan Works on 8.2 😁
yes it's work but licence xcode is not good) it is not probleme of publication app in appstore
@web-differently use https://github.com/fpg1503/MakeXcodeGr8Again then run codesign
pointing to the copied XcodeGr8.app
so your original Xcode can be used for publishing apps.
Thanks yweiquan it works well on 8.2
To make things easier, you can use this shell script to automate the XVim steps:
curl -fsSL https://raw.githubusercontent.com/alanhamlett/MakeXcodeGr8Again/master/selfsign.sh | bash
By default that script signs a copied XcodeGr8.app
created after running MakeXcodeGr8Again. Alternatively, you can overwrite your Xcode.app by running:
export APP=/Applications/Xcode.app; curl -fsSL https://raw.githubusercontent.com/alanhamlett/MakeXcodeGr8Again/master/selfsign.sh | bash
@alanhamlett It would be great is the script copied Xcode.app to XcodeGr8.app
I got a working and signed version of XcodeGr8 but not seeing the Alcatraz package manager in the menu. Anyone have any thoughts? This is for XcodeGr8 @ 8.2.1
How can I recover Xcode's default sign?
it work for me, xcode 8.2.1 show: window-->packageMangeer find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add $(defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID)
How do I install for 8.3.2? I don't see the Package Manager Cell.
@rlam3 run this Terminal command:
curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh
btw, Alcatraz seems to break TouchBar simulation. Here's what I see in terminal:
Details: Unable to find windows menu item for `Xcode.IDEKit.CmdDefinition.Products'. Simulator menu item may be in the wrong position.
Object: <IDETouchBarSimulatorManager: 0x7fb0a4a26c90>
Method: -installMenuItems
Thread: <NSThread: 0x7fb0a1d17230>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.```
Notice the `item may be in the wrong position` message
Not sure if it's Xcode 8.3.1 specific issue or not.
@alanhamlett It doesn't works on Xcode 8.3.2
@alanhamlett Suggesting users to install some third-party plug-in just to get Alcatraz is a bad idea.
@CoderXLLau You should remove codesigning from Xcode (or resign it), if you want it to load plugins. Please read https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md. You don't have to resign whole Xcode.app, just resigning Contents/MacOS/Xcode would be enough.
I just removed signature with https://github.com/steakknife/unsign
Btw, keep in mind that it can break Xcode update from App Store.
@stek29 use this command to re-sign Xcode and install only Alcatraz:
curl -fsSL https://raw.githubusercontent.com/alanhamlett/MakeXcodeGr8Again/master/selfsign.sh | sh
More info here: https://github.com/alanhamlett/MakeXcodeGr8Again#non-gui-version
@alanhamlett And it would also re-sign Xcode with pregenerated key. Even just unsigning is better -- it doesn't give you illusion of being secure.
@stek29 Xcode won't load plugins with just unsigning, which is why the xvim instructions also selfsign Xcode. Maybe Apple will support plugins some day, but until then use the above script.
@alanhamlett I have unsigned Xcode, and it loads plugins and works perfectly fine.
However, having unsigned Xcode can cause issues with keychain.
Just Xcode executable is unsigned, everything else was not changed (that's why xcodebuild doesn't load plugins for example -- but I don't need plugins in xcodebuild)
How do you make it work for 8.3.3 ?
@davroux
Patch DVTPlugInCompatibilityUUID (or install DVTPlugInCompatibilityUUIDifier plugin)
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID
Resign/Unsign Xcode: See https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md. I personally prefer to just unsign Xcode:
git clone https://github.com/steakknife/unsign && cd unsign && make
export PATH="$PWD:$PATH"
cd /Applications/Xcode.app/Contents/MacOS
sudo unsign Xcode
sudo mv Xcode Xcode.signed
sudo mv Xcode.unsigned Xcode
In case you just unsigned Xcode, keep in mind that xcodebuild won't load plugins too, unless un/resigned
is it safe to do these changes? I want to install it at my work house.
@yweiquan It works on Xcode 8.3 I find that you should quit your Xcode and run the following command after you install each plugin by Alcatraz
$ find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-adddefaults read /Applications/Xcode.app/Contents/Info.plist DVTPlugInCompatibilityUUID
then you restart your Xcode, It will load your installed plugins
it also works on xcode 9
Does this actually work for you in Xcode 9? I managed to install Alcatraz, and some plugins, they're showing in menus, but none of them is actually working (BlockJump, Auto-Importer, ATAutoCompletion, Aviator)
@Przytua you need turn to BlockJump and other project for help.
This project is doomed
https://github.com/XVimProject/XVim/blob/master/INSTALL_Xcode8.md
looky here! i tried it, and it worked. xvim installed and is working, and alcatraz was built and installed. the problem is that i cannot install plugins, i get an error while compiling or something. im sure some of you guys can figure this out, since you probably know more than me about how to integrate alcatraz.