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

更换了友盟分享的第三方库之后,就开始报这个警告
warning: Could not resolve external type c:objccsNSObject
while processing /Users/whqfor/ios/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_4.3/UMSocial_Sdk_Extra_Frameworks/SinaSSO/libWeiboSDK.aWBSDKNormalWebViewController.o:
warning: Could not resolve external type c:objccsNSDictionary
while processing /Users/whqfor/ios/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_4.3/UMSocial_Sdk_Extra_Frameworks/SinaSSO/libWeiboSDK.aWBSDKNormalWebViewController.o:
warning: Could not resolve external type c:objccsNSString
while processing /Users/whqfor/ios/Pods/UMengSocial/Umeng_SDK_Social_iOS_ARM64_4.3/UMSocial_Sdk_Extra_Frameworks/SinaSSO/libWeiboSDK.aWBSDKNormalWebViewController.o:
warning: Could not resolve external type c:objccsNSObject

找了一些解决方法,其中一个是:
I had this problem too. Heres 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 dont need dSYM files for Debug builds — its release builds where you need them.
但是这样在release模式下,还是有警告,并且不知道这样设置的作用是什么。

发表评论

电子邮件地址不会被公开。 必填项已用*标注