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

今天更新了下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就可以了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值