当使用WKWebView的时候,出现下列错误:
1、Undefined symbols for architecture i386:
"_OBJC_CLASS_$_WKWebView", referenced from:
objc-class-ref in XZPartImageController.o
objc-class-ref in XZSharePartImageController.o
"_OBJC_CLASS_$_WKWebViewConfiguration", referenced from:
objc-class-ref in XZPartImageController.o
"_OBJC_CLASS_$_WKUserContentController", referenced from:
objc-class-ref in XZPartImageController.o
"_OBJC_CLASS_$_WKUserScript", referenced from:
objc-class-ref in XZPartImageController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在Info中的General最下方的Linked Frameworks and Libraries中添加WebKit.framework框架
2、项目嵌入环信UI,导致出现下方6个错误
Undefined symbols for architecture x86_64: "_ACAccountTypeIdentifierTwitter", referenced from: -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o) "_OBJC_CLASS_$_ACAccountStore", referenced from: objc-class-ref in Parse(PF_Twitter.o) "_OBJC_CLASS_$_SLComposeViewController", referenced from: objc-class-ref in Parse(PF_Twitter.o) "_OBJC_CLASS_$_SLRequest", referenced from: objc-class-ref in Parse(PF_Twitter.o) "_SLServiceTypeTwitter", referenced from: -[PF_Twitter getAccessTokenForReverseAuthAsync:localTwitterAccount:] in Parse(PF_Twitter.o) -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)ld: symbol(s) not found for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:在TARGETS—Build Phases—Link Binary With Libraries 中添加以下两个库即可解决Social.frameworkAccounts.framework
像以上几个问题都是缺少框架导致的,有的时候我们不知道缺少什么框架,那就看每一对””括起来的部分,这部分的前缀都是框架的缩写,如果缩写也看不出来是哪个框架的话,只能通过缩写的第一个首字母查看了,然后根据显示出来的库的名称去匹配
3、Xcode上方显示一个错误,点击错误,不显示详细的错误信息的解决:
相关文章
- 1.Anaconda安装Tensorflow报错UnicodeDecodeError: 'utf-8' codec can't decode ## invalid start byte的问题之解决
- 解决安装mysql时出现的三种问题
- 如何解决SWAT模型数据移动目录后出现的“SWAT2005.mdb database specified in your MasterProgress table does not exists. Please correct and try again”的问题
- IDEA配置svn地址方法及出现的问题的解决办法
- StreamSets学习系列之启动StreamSets时出现Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "test.to.ensure.security.is.configured.correctly" "read")错误的解决办法
- 阿里云服务器出现Warning: Cannot modify header information - headers already sent by (output started at 问题的解决方法
- php解决乱码问题时,出现Cannot modify header information问题的解决方法
- vbox 挂载共享文件时可能出现的问题以及对应的解决办法
- 第九节: EF的性能篇(二) 之 Z.EntityFramework.Extensions程序集解决EF的性能问题
- 解决ADT大量出现"Unexpected value from nativeGetEnabledTags: 0"的问题