ios - warning: Could not resolve external type c:objc(cs)NSObject

 海边的石雨价_288 发布于 2022-11-01 09:26

更换了友盟分享的第三方库之后,就开始报这个警告
warning: Could not resolve external type c:objc(cs)NSObject
while processing /Users/whqfor/ios/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_4.3/UMSocial_Sdk_Extra_Frameworks/SinaSSO/libWeiboSDK.a(WBSDKNormalWebViewController.o):
warning: Could not resolve external type c:objc(cs)NSDictionary
while processing /Users/whqfor/ios/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_4.3/UMSocial_Sdk_Extra_Frameworks/SinaSSO/libWeiboSDK.a(WBSDKNormalWebViewController.o):
warning: Could not resolve external type c:objc(cs)NSString
while processing /Users/whqfor/ios/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_4.3/UMSocial_Sdk_Extra_Frameworks/SinaSSO/libWeiboSDK.a(WBSDKNormalWebViewController.o):
warning: Could not resolve external type c:objc(cs)NSObject

找了一些解决方法,其中一个是:
I had this problem too. Here's how I fixed it.
1) Go to Build Settings -> Build Options -> Debug Information Format
2) Change the Debug setting from "DWARF with dSYM File" to "DWARF"
3) Leave the Release setting at "DWARF with dSYM File"
The problem appears to be that Xcode was trying to create dSYM files for Debug builds. You don't need dSYM files for Debug builds -- it's release builds where you need them.
但是这样在release模式下,还是有警告,并且不知道这样设置的作用是什么。

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有