美文网首页
warning: Could not resolve exter

warning: Could not resolve exter

作者: 文刂Rn | 来源:发表于2016-12-22 13:33 被阅读25次

    一. 更换了友盟分享的第三方库之后,就开始报这个警告或者是更新了bugtags的第三方之后,也会报这个警告

    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, 删掉编译报warning的路径即OK

    相关文章

      网友评论

          本文标题:warning: Could not resolve exter

          本文链接:https://www.haomeiwen.com/subject/hiacvttx.html