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

一. 更換了友盟分享的第三方庫(kù)之后,就開始報(bào)這個(gè)警告或者是更新了bugtags的第三方之后,也會(huì)報(bào)這個(gè)警告

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

Snip20161222_5.png

解決方法:
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.

二. Xcode7 中 directory not found for option 'xxxx' 警告

ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks'

Snip20161222_6.png

解決方法:
1選擇工程, 編譯的 (targets)
2選擇 Build Settings 菜單
3查找 Library Search Paths 和 Framework Search Paths, 刪掉編譯報(bào)warning的路徑即OK

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容