XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 595 forks source link

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

Open truongngoclinh opened 7 years ago

truongngoclinh commented 7 years ago

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

Expected behaviour

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

Environments

Crash log (if any)

 [ Paste the log here ]
tidbeck commented 7 years ago

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

truongngoclinh commented 7 years ago

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

truongngoclinh commented 7 years ago

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

windniw commented 7 years ago

Build success and work well in Xcode 8.3.1

gonefish commented 7 years ago

me too

podkovyrin commented 7 years ago

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`
hyouuu commented 7 years ago

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

rqueue commented 7 years ago

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

matachi commented 7 years ago

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

hanl001 commented 7 years ago

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

truongngoclinh commented 7 years ago

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

rqueue commented 7 years ago

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

bduhbya commented 7 years ago

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: "_OBJCCLASS$_IDEPlaygroundEditor", referenced from: anon in IDEPlaygroundEditor+XVim.o lOBJC$_CATEGORYIDEPlaygroundEditor$_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.

WellerQu commented 7 years ago

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

rqueue commented 7 years ago

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

hidez commented 7 years ago

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

WellerQu commented 7 years ago

@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 commented 7 years ago

@hidez Yeah, I have tried develop branch.

screen shot 2017-06-12 at 14 27 30
WellerQu commented 7 years ago

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