XVimProject/XVim

Build failure with Xcode 8.3.3, MacOS 10.12.5

zhuifeng740643787 opened this issue ยท 6 comments

Description

Followed the instructions here to re-install XVim but when I run make it fails with error 65.

Operation

After setting up a new self-signed certificate, issued

sudo codesign -f -s XcodeSigner /Applications/Xcode.app

and then make, when I run make it fails with error 65.

Followed the answer of issues#1058

Remove support for "IDEPlaygroundEditor".
Delete reference of "IDEPlaygroundEditor+XVim.h" and "IDEPlaygroundEditor+Xvim.m", 
then  comment the reference code in "XVim/XVimHookManager.m".    

and then make, but when I run make it also fails with error 65.

Expected behaviour

XVim installed and working in Xcode

Environments

  • MacOS Version [ 10.12.5 ]
  • Xcode Version [ 8.3.3 ]
  • XVim branch and revision [ master 4ac2725]
  • Keyboard Language [ English ]
  • Input source language [ English ]

Crash log (if any)

CompileC build/XVim.build/Release/XVim.build/Objects-normal/x86_64/IDEPlaygroundEditor+XVim.o XVim/IDEPlaygroundEditor+XVim.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/gongyidong/workspace/ios/XVim
export LANG=en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=125 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -gmodules -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wmissing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wno-bool-conversion -Wenum-conversion -Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DXVIM_XCODE_VERSION=5 -DXVIM_XCODE8=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.7 -g -Wsign-conversion -Wno-infinite-recursion -IXcodeClasses/Xcode8 -IXcodeClasses/Xcode4 -IXVim -I/Users/gongyidong/workspace/ios/XVim/build/Release/include -I/Users/gongyidong/workspace/ios/XVim/build/XVim.build/Release/XVim.build/DerivedSources/x86_64 -I/Users/gongyidong/workspace/ios/XVim/build/XVim.build/Release/XVim.build/DerivedSources -F/Users/gongyidong/workspace/ios/XVim/build/Release -F/Applications/Xcode.app/Contents/Developer/../Frameworks -F/Applications/Xcode.app/Contents/Developer/../PlugIns -F/Applications/Xcode.app/Contents/Developer/../SharedFrameworks -include /Users/gongyidong/workspace/ios/XVim/build/SharedPrecompiledHeaders/XVim-Prefix-elexydpllzrbhtdrnipiabdnwnvz/XVim-Prefix.pch -MMD -MT dependencies -MF /Users/gongyidong/workspace/ios/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/IDEPlaygroundEditor+XVim.d --serialize-diagnostics /Users/gongyidong/workspace/ios/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/IDEPlaygroundEditor+XVim.dia -c /Users/gongyidong/workspace/ios/XVim/XVim/IDEPlaygroundEditor+XVim.m -o /Users/gongyidong/workspace/ios/XVim/build/XVim.build/Release/XVim.build/Objects-normal/x86_64/IDEPlaygroundEditor+XVim.o
clang: error: no such file or directory: '/Users/gongyidong/workspace/ios/XVim/XVim/IDEPlaygroundEditor+XVim.m'
clang: error: no input files

** BUILD FAILED **

The following build commands failed:
CompileC build/XVim.build/Release/XVim.build/Objects-normal/x86_64/IDEPlaygroundEditor+XVim.o XVim/IDEPlaygroundEditor+XVim.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make: *** [release] Error 65

XVim build failure with Xcode 8.3.3, MacOS 10.12.5

I was getting this issue when building XVim from the master branch. I just tried again with the develop branch and it worked, and I have XVim in my XCode 8.3.3

I also got a (somewhat different) build failure:

PBXCp build/Release/XVim.xcplugin /Users/rzemer/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/XVim.xcplugin
cd /Users/rzemer/tools/XVim
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/rzemer/tools/XVim/build/Release/XVim.xcplugin /Users/rzemer/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins

** BUILD FAILED **

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

xcode V8.3.3
MacOS: 10.12.5 (16F73)

I have solve this error with add IDEPlaygroundEditor.h and IDEPlaygroundEditor.m
image

Can confirm it works for Version 8.3.3 (8E3004b) if you build from the develop branch

edit: Mac version 10.12.5 (16F73)

Just link to IDEPlaygroundEditor instead of removing it

Open build phases and look at "link binary with libraries"