美文网首页iOS开发
iOS开发中遇到的崩溃和错误问题总结

iOS开发中遇到的崩溃和错误问题总结

作者: smallLabel | 来源:发表于2015-11-13 09:48 被阅读2477次

1、EXC_BAD_ACCESS(code = 1,address = 0x0******)

render方法为刷新UI,最后发现在子线程中刷新UI导致崩溃;

很简单的问题......坑

2、duplicate symbol _OBJC_CLASS 错误处理方法

该错误可能有两种错误:1、工程中存在同名的文件,包括文件夹重名;

                                   2、第二种,如果你导入了静态库的话,看看是不是静态库中把.m文件当成.h文件导入了

3./Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/lib/libxml2.tbd is not an object file (not allowed in a library)

在静态库中使用新的.tbd库报错。

解决方案:

1.从Libraries and Frameworks area删除引入的.tbd库

删除.tbd库

2.在 other linker中添加对应的库

此处我引用的xml2,添加-lxml2

若引用libz.dylib,则添加-lz.

引用什么库就添加-l+库后缀

参考链接:http://stackoverflow.com/questions/32734097/xcode7-ios9-about-libz-tbd-is-not-an-object-file-not-allowed-in-a-library

相关文章

网友评论

    本文标题:iOS开发中遇到的崩溃和错误问题总结

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