美文网首页
Xcode问题汇总

Xcode问题汇总

作者: 李琪_59dc | 来源:发表于2018-09-04 15:53 被阅读0次

问题1:This app could not be installed at this time.

解决办法:pod install之后,重启xcworkspace和模拟器

问题2:Undefined symbols for architecture arm64:

Undefined symbols for architecture arm64:
"_iconv_open", referenced from:
libIDCardKernal::TextEncoding::IConv(void, int, int) in XXX.a(Markup.o)
"_iconv", referenced from:
libIDCardKernal::TextEncoding::IConv(void
, int, int) in XXX.a(Markup.o)
"_iconv_close", referenced from:
libIDCardKernal::TextEncoding::IConv(void*, int, int) in XXX.a(Markup.o)
ld: symbol(s) not found for architecture arm64

解决办法:添加依赖库 libiconv.2.4.0.tbd
General-> Linked FrameWorks and Libraries-> 点"+" -> 搜icon,添加libiconv.2.4.0.tbd依赖库
然后重新进行编译!

问题3:Library not found for -lXXXXX

(1) 如果是没用到的库:
Build Settings-> Other Linker Flags -> 去掉-l"XXXX"
(2) 如果是第三方的库:
确认一下提供的.a或者.framework文件名,是不是最初生成的文件原始名字。。。重命名过也会找不到

相关文章

网友评论

      本文标题:Xcode问题汇总

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