美文网首页
iOS编译错误汇总

iOS编译错误汇总

作者: 张钻研 | 来源:发表于2018-02-01 17:39 被阅读0次

symbol(s) not found for architecture x86_64

在编译Test项目的时候,编译得到上面的错误,查看https://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64 , 被没有解决问题, 在仔细看错误,对比可正确编译的版本

l_OBJC_$CATEGORY_UIColor$_ColorUtils in libColorUtils.a(ColorUtils.o)

会发现是UIColor没有找到,之后定位到是UIKit framework被link,在OTHER_LDFLAGS加上

  -framework "UIKit"

即可

相关文章

网友评论

      本文标题:iOS编译错误汇总

      本文链接:https://www.haomeiwen.com/subject/kotjzxtx.html