XVim icon indicating copy to clipboard operation
XVim copied to clipboard

Build failure using Xcode 8.3 beta 3

Open kconner opened this issue 8 years ago • 20 comments

Operation

After self-signing Xcode:

sudo xcode-select -s <path-to-xcode-8.3-beta-3>
make

Expected behaviour

Should build XVim and install it to Xcode's plugins.

Environments

  • Xcode Version: 8.3 beta 3, 8W132P
  • XVim branch and revision: Current develop branch, ec2c601
  • Keyboard Language: US English Dvorak
  • Input source language: US English Dvorak

Crash log (if any)

… (long build log) …

Ld build/Release/XVim.xcplugin/Contents/MacOS/XVim normal x86_64 cd /Users/kevinconner/src/XVimProject/XVim export MACOSX_DEPLOYMENT_TARGET=10.7 /Applications/Xcode-beta\ with\ XVim.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode-beta\ with\ XVim.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -L/Users/kevinconner/src/XVimProject/XVim/build/Release -L/Applications/Xcode-beta\ with\ XVim.app/Contents/Developer/../PlugIns/IDESourceEditor.ideplugin/Contents/MacOS -F/Users/kevinconner/src/XVimProject/XVim/build/Release -F/Applications/Xcode-beta\ with\ XVim.app/Contents/Developer/../Frameworks -F/Applications/Xcode-beta\ with\ XVim.app/Contents/Developer/../PlugIns -F/Applications/Xcode-beta\ with\ XVim.app/Contents/Developer/../SharedFrameworks -filelist /Users/kevinconner/src/XVimProject/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/XVim.LinkFileList -mmacosx-version-min=10.7 -Xlinker -object_path_lto -Xlinker /Users/kevinconner/src/XVimProject/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/XVim_lto.o -fobjc-arc -fobjc-link-runtime -framework AppKit -framework Cocoa -framework IDEFoundation -framework IDEKit -framework DVTFoundation -framework DVTKit /Applications/Xcode-beta\ with\ XVim.app/Contents/PlugIns/IDELanguageSupportUI.ideplugin/Contents/MacOS/IDELanguageSupportUI /Applications/Xcode-beta\ with\ XVim.app/Contents/PlugIns/IDESourceEditor.ideplugin/Contents/MacOS/IDESourceEditor -Xlinker -dependency_info -Xlinker /Users/kevinconner/src/XVimProject/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/XVim_dependency_info.dat -o /Users/kevinconner/src/XVimProject/XVim/build/Release/XVim.xcplugin/Contents/MacOS/XVim 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 clang: error: linker command failed with exit code 1 (use -v to see invocation)

kconner avatar Mar 03 '17 20:03 kconner

Building @pebble8888's commit solves the problem.

kconner avatar Mar 06 '17 15:03 kconner

Same for me (I ported the changes on XVim's master because the fork had a few more diffs, and it worked). Nice workaround until the changes are merged.

mna avatar Mar 27 '17 22:03 mna

@pebble8888 done a great job ! thanks

bitQ2019 avatar Mar 28 '17 09:03 bitQ2019

https://github.com/XVimProject/XVim/pull/1055 This PR has Xcode 8.3 compatibility

keith avatar Mar 28 '17 14:03 keith

OK. But who have the privileges to merge it to this repository?

pbrewczynski avatar Apr 11 '17 10:04 pbrewczynski

Sorry but I don't have much time to merge it to master branch. The fix is already merged into develop branch.

JugglerShu avatar Apr 11 '17 11:04 JugglerShu

Got it working with Xcode 8.3 using the above, but now in Xcode 8.3.1, even though it builds, it doesn't seem to load XVim when using Xcode.

CallumHoward avatar Apr 13 '17 22:04 CallumHoward

Builds but doesn't load in 8.3

keithZumper avatar Apr 13 '17 22:04 keithZumper

Did you guys re-sign the new Xcode??

JugglerShu avatar Apr 14 '17 07:04 JugglerShu

@JugglerShu Ah yes, resigning fixed it. Now XVim is working using xcode-8.3-release branch on Xcode 8.3.1. Thanks!

CallumHoward avatar Apr 14 '17 12:04 CallumHoward

I'm on the latest master branch (4ac2725) and "make" fails for my xcode (8.3.1). Can anyone help?

Ld build/Release/XVim.xcplugin/Contents/MacOS/XVim normal x86_64
    cd /Users/jduan/github/XVim
    export MACOSX_DEPLOYMENT_TARGET=10.7
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -L/Users/jduan/github/XVim/build/Release -L/Applications/Xcode.app/Contents/Developer/../PlugIns/IDESourceEditor.ideplugin/Contents/MacOS -F/Users/jduan/github/XVim/build/Release -F/Applications/Xcode.app/Contents/Developer/../Frameworks -F/Applications/Xcode.app/Contents/Developer/../PlugIns -F/Applications/Xcode.app/Contents/Developer/../SharedFrameworks -filelist /Users/jduan/github/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/XVim.LinkFileList -mmacosx-version-min=10.7 -Xlinker -object_path_lto -Xlinker /Users/jduan/github/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/XVim_lto.o -fobjc-arc -fobjc-link-runtime -framework AppKit -framework Cocoa -framework IDEFoundation -framework IDEKit -framework DVTFoundation -framework DVTKit /Applications/Xcode.app/Contents/PlugIns/IDELanguageSupportUI.ideplugin/Contents/MacOS/IDELanguageSupportUI /Applications/Xcode.app/Contents/PlugIns/IDESourceEditor.ideplugin/Contents/MacOS/IDESourceEditor -Xlinker -dependency_info -Xlinker /Users/jduan/github/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/XVim_dependency_info.dat -o /Users/jduan/github/XVim/build/Release/XVim.xcplugin/Contents/MacOS/XVim
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
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **


The following build commands failed:
        Ld build/Release/XVim.xcplugin/Contents/MacOS/XVim normal x86_64
(1 failure)
make: *** [release] Error 65

jduan avatar Apr 18 '17 07:04 jduan

@jduan you need to build the develop branch to get support for Xcode 8.3.1 as IDEPlaygroundEditor has been removed. See #1055

tidbeck avatar Apr 18 '17 07:04 tidbeck

@tidbeck thank you so much! I built the develop branch and it worked beautifully.

jduan avatar Apr 18 '17 23:04 jduan

Also work in XCode8.3.2 , good job!

dgutyanghs avatar Apr 21 '17 02:04 dgutyanghs

@tidbeck Thanks a lot! Switching to the develop branch made it work in Xcode 8.3.2 for me.

cor avatar Apr 29 '17 13:04 cor

how do you guys switch to a develop branch?

ghost avatar May 13 '17 23:05 ghost

It's standard git operations:

  • git fetch origin
  • git checkout origin/develop

jduan avatar May 15 '17 02:05 jduan

thx

8.3 worked!

13hoop avatar Jun 06 '17 14:06 13hoop

1.use Xcode to open xVim project! 2.entry "/XVim/Event Dispatchers" and then delete "IDEPlaygroundEditor+Xvim.h” and “IDEPlaygroundEditor+Xvim.m"
3.and entry "XVimHookManager.m" to delete the reference of them .

it works!

Chan-Chun avatar Jun 20 '17 07:06 Chan-Chun

As @Chan-Chun said, it works on 8.3.3

BBHNation avatar Jul 05 '17 01:07 BBHNation