当前位置: 首页 > 工具软件 > XVim > 使用案例 >

更新XCode 8.3 以后XVim编译失败解决方法

朱锐
2023-12-01

今天更新了下XCode之后安装的一些插件不能使用了,没了XVim完全不能适应。从https://github.com/XVimProject/XVim.git重新下载了个最新版本,进行编译提示失败。

看了下更新日志进行如下处理:

After setting up a new self-signed certificate, issued(创建XcodeSigner自签名证书)

sudo codesign -f -s XcodeSigner /Applications/Xcode.app (在终端中运行命令)

and then make  (终端中进行编译或直接XCode build)


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)



如果编译出失败出现上面的提示错误,解决方法如下:

Remove support for "IDEPlaygroundEditor".

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

删除"IDEPlaygroundEditor+XVim.h 和 IDEPlaygroundEditor+XVim.m  及相关文件的引用后再make就可以了

 类似资料: