XZ_iOS之出现以下问题的解决

时间:2021-10-31 07:05:18
当使用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) XZ_iOS之出现以下问题的解决

在Info中的General最下方的Linked Frameworks and Libraries中添加WebKit.framework框架 XZ_iOS之出现以下问题的解决
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)
XZ_iOS之出现以下问题的解决
解决方法:在TARGETS—Build Phases—Link Binary With Libraries 中添加以下两个库即可解决Social.frameworkAccounts.framework XZ_iOS之出现以下问题的解决
像以上几个问题都是缺少框架导致的,有的时候我们不知道缺少什么框架,那就看每一对””括起来的部分,这部分的前缀都是框架的缩写,如果缩写也看不出来是哪个框架的话,只能通过缩写的第一个首字母查看了,然后根据显示出来的库的名称去匹配

3、Xcode上方显示一个错误,点击错误,不显示详细的错误信息的解决: XZ_iOS之出现以下问题的解决
XZ_iOS之出现以下问题的解决