XVim icon indicating copy to clipboard operation
XVim copied to clipboard

Xcode 8.3.2 Build success, but plugin non-functional, popup allowing Xvim not shown

Open truongngoclinh opened this issue 7 years ago • 19 comments

Description

I can install Xvim successfully by using develop branch, but no VIM feature in Xcode when I open projects. I cant see the notice for: "allow xcode load Xvim from bundles".

Operation

  • /XVim  ➦ fa5224b  sudo make xcodebuild -configuration Release 2017-04-21 21:00:23.704 xcodebuild[19159:92286] [MT] PluginLoading: Required plug-in compatibility UUID DFFB3951-EB0A-4C09-9DAC-5F2D28CC839C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XVim.xcplugin' not present in DVTPlugInCompatibilityUUIDs === BUILD TARGET XVim OF PROJECT XVim WITH CONFIGURATION Release == .... ** BUILD SUCCEEDED **

Expected behaviour

XVim working in Xcode. At least show the popup that allows load Xvim.

Environments

  • Xcode Version [ 8.3.2 ]
  • XVim branch and revision [ develop / fa5224b ]
  • Keyboard Language [ English US ]
  • Input source language [ English US ]

Crash log (if any)

 [ Paste the log here ]

truongngoclinh avatar Apr 21 '17 14:04 truongngoclinh

Have you followed the Install XVim for Xcode 8 instructions (re-signed Xcode)?

tidbeck avatar Apr 21 '17 14:04 tidbeck

@tidbeck, sure I signed successfully: sudo codesign -f -s XcodeSigner /Applications/Xcode.app, the keychain allowing popup was shown.

truongngoclinh avatar Apr 21 '17 14:04 truongngoclinh

Build failed if I use master branch. The following build commands failed: Ld build/Release/XVim.xcplugin/Contents/MacOS/XVim normal x86_64

truongngoclinh avatar Apr 21 '17 14:04 truongngoclinh

Build success and work well in Xcode 8.3.1

  • Xvim branch develop
  • Xcode version 8.3.1

windniw avatar Apr 22 '17 04:04 windniw

me too

gonefish avatar Apr 22 '17 07:04 gonefish

Try to update compatibility UUIDs with the following command and restart Xcode:

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 DVTPlugInCompatibilityUUID`

podkovyrin avatar Apr 22 '17 13:04 podkovyrin

Followed @podkovyrin's command, re-signed Xcode and re-make works for me on 8.3.2

hyouuu avatar Apr 22 '17 21:04 hyouuu

Has anyone else found another solution? I can't seem to get it to work using the command from podkovyrin.

  • Xcode 8.3.2
  • XVim develop branch

rqueue avatar May 05 '17 05:05 rqueue

@rqueue Not sure what command did the trick, but I ran the following commands a couple of times:

$ defaults delete  com.apple.dt.Xcode DVTPlugInManagerNonApplePlugIns-Xcode-8.3.2
$ 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 DVTPlugInCompatibilityUUID`
$ sudo codesign -f -s XcodeSigner /Applications/Xcode.app
$ make

Eventually XVim started to work in Xcode again. I'm also running Xcode 8.3.2 and I'm on the develop branch of XVim.

matachi avatar May 10 '17 08:05 matachi

you should create an other sign and Re-signing Xcode again

hanl001 avatar May 17 '17 07:05 hanl001

It now works well on Xcode 8.3.2 with develop branch. Thank you all for your reply!

truongngoclinh avatar May 23 '17 08:05 truongngoclinh

What did it in the end for me was opening the xvime project in xcode and building it there + all the other steps people mentioned

rqueue avatar Jun 03 '17 01:06 rqueue

To clarify, if we want the latest plugin code, we need to use "develop" branch and NOT master? Master fails to build for me (Undefined symbols for architecture x86_64: "OBJC_CLASS$IDEPlaygroundEditor", referenced from: anon in IDEPlaygroundEditor+XVim.o l_OBJC$CATEGORY_IDEPlaygroundEditor$_XVim in IDEPlaygroundEditor+XVim.o objc-class-ref in XVimHookManager.o ld: symbol(s) not found for architecture x86_64)

But, https://github.com/pebble8888/XVim.git works. I had no trouble with the codesign part.

bduhbya avatar Jun 07 '17 21:06 bduhbya

I have the same problem, but my xcode version is 8.3.3. Any ideas, please. Thanks

WellerQu avatar Jun 11 '17 05:06 WellerQu

@wellerqu have you tried opening the xvim project itself in Xcode and running it in addition to all the other steps people mentioned?

rqueue avatar Jun 11 '17 14:06 rqueue

@WellerQu Have you tried develop branch of XVim? Master branch failed with make. But develop branch works for me on Xcode8.3.3.

hidez avatar Jun 12 '17 04:06 hidez

@rqueue Yes, I have tried all the other steps in this issue. But can't get the expected result. And I get some warns: screen shot 2017-06-12 at 14 30 13

WellerQu avatar Jun 12 '17 06:06 WellerQu

@hidez Yeah, I have tried develop branch. screen shot 2017-06-12 at 14 27 30

WellerQu avatar Jun 12 '17 06:06 WellerQu

Thanks all. And I resolved it with @bduhbya 's solution.

WellerQu avatar Jun 12 '17 06:06 WellerQu