1. 如图
免费应用程序调试最大限度
解决:连接iPhone 打开Xcode->Window->Devices:如图
2. "_OBJC_CLASS_$_QQApiAudioObject", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
解决:1.m文件没有导入 在Build Phases里的Compile Sources 中添加报错的文件
2.framework文件没有导入,静态库编译时往往需要一些库的支持,查看你是否有没有导入的库文件
同样是在Build Phases里的Link Binary With Libraries中添加
3.在Build Settings里搜索Search Paths 将里面Library Search Paths 中没有用到的地址删除
如图:
3. Target 'Pods-KangYou' of project 'Pods' was rejected as an implicit dependency for 'libPods-
KangYou.a' because its architectures 'x86_64' didn't contain all required architectures 'i386'
解决 :Build Settings-->Build Active Architecture Only-->Debug的Yes改为No
4. ld: library not found for -lHyphenateFullSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决:这是xcode在编译的时候却找不到这个库,从而报此错误。
1在Target的Build Settings界面,在“Library Search Path”中添加缺失链接库的所在文件夹的路径
2将库文件删除,清理项目,然后再重新导入库文件
5. SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
解决:1. 到 Edit Scheme (快捷键 command + shift + <)
2.选择 Arguments 选项
3.添加变量 OS_ACTIVITY_MODE
= disable
6. 真机测试时报 Apple Mach-O Linker (ld) Error,没办法点开
解决: Build Settings中把bitcode改成NO