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

本文将详细解释在iOS开发过程中,当引入第三方库后,遇到Xcode警告的原因及解决方案。主要关注警告信息中提到的无法解析外部类型问题,并提供了解决方法,帮助开发者避免在开发过程中遇到此类困扰。

在引入第三方库后,出现这个警告

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

warning: /Users/yuetongmai/Library/Developer/Xcode/DerivedData/WeChatSDK-dxxshmzcbrssjsfhojftiecovviv/Build/Intermediates/PrecompiledHeaders/WeChatSDK-Prefix-hcolxgxtprjnneanopoelztuskxm/WeChatSDK-Prefix.pch.pch: No such file or directory

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

warning: /Users/yuetongmai/Library/Developer/Xcode/DerivedData/WeChatSDK-dxxshmzcbrssjsfhojftiecovviv/Build/Intermediates/PrecompiledHeaders/WeChatSDK-Prefix-hcolxgxtprjnneanopoelztuskxm/WeChatSDK-Prefix.pch.pch: No object file for requested architecture

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/...Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WeChatRegister.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WapAuthHandler.o):

warning: /Users/yuetongmai/Library/Developer/Xcode/DerivedData/WeChatSDK-dxxshmzcbrssjsfhojftiecovviv/Build/Intermediates/PrecompiledHeaders/WeChatSDK-Prefix-hcolxgxtprjnneanopoelztuskxm/WeChatSDK-Prefix.pch.pch: No such file or directory

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WapAuthHandler.o):

warning: /Users/yuetongmai/Library/Developer/Xcode/DerivedData/WeChatSDK-dxxshmzcbrssjsfhojftiecovviv/Build/Intermediates/PrecompiledHeaders/WeChatSDK-Prefix-hcolxgxtprjnneanopoelztuskxm/WeChatSDK-Prefix.pch.pch: No object file for requested architecture

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WapAuthHandler.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WapAuthHandler.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WapAuthHandler.o):

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

while processing /Users/.../Pods/libWeChatSDK/libWeChatSDK.a(WapAuthHandler.o):

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


解决方法: 

the option to set "Debug Information Format" to "DWARF", rather than "DWARF with dSYM" is not a viable alternative, since it prevents the capture of crash reports by Crashlytics, HockeyApp, etc.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值