weiboSDK集成报错:NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to...

解决方法

设置Build Setting -> Other Linker Flags 为 -ObjC

错误信息
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to instance 0x600000242a60'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010a4a434b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x0000000109b9d21e objc_exception_throw + 48
    2   CoreFoundation                      0x000000010a513f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x000000010a429c15 ___forwarding___ + 1013
    4   CoreFoundation                      0x000000010a429798 _CF_forwarding_prep_0 + 120
    5   BBC_iOS                             0x00000001077e37e1 -[WBMFPRSA encrypt:] + 125
    6   BBC_iOS                             0x00000001077e254b -[WBAidManager generateMFPString] + 1346
    7   BBC_iOS                             0x00000001077e263e -[WBAidManager fetchAid:] + 103
    8   BBC_iOS                             0x00000001077e1f70 -[WBAidManager advertisementIdentifier] + 99
    9   BBC_iOS                             0x00000001077e2972 -[WBAidManager fetchAidIfNeededWithApp:] + 69
    10  BBC_iOS                             0x00000001078049e9 +[WeiboSDK registerAppWithApp:] + 796
    11  BBC_iOS                             0x0000000107804d6e +[WeiboSDK registerAppWithAppKey:] + 139
    12  BBC_iOS                             0x0000000107354a81 _TFC7BBC_iOS11AppDelegate11applicationfTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVs10DictionaryVSC29UIApplicationLaunchOptionsKeyP____Sb + 5425
    13  BBC_iOS                             0x0000000107355884 _TToFC7BBC_iOS11AppDelegate11applicationfTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVs10DictionaryVSC29UIApplicationLaunchOptionsKeyP____Sb + 180
    14  UIKit                               0x000000010af7d0be -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 290
    15  UIKit                               0x000000010af7ea43 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4236
    16  UIKit                               0x000000010af84de9 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
    17  UIKit                               0x000000010af81f69 -[UIApplication workspaceDidEndTransaction:] + 188
    18  FrontBoardServices                  0x00000001104e6723 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    19  FrontBoardServices                  0x00000001104e659c -[FBSSerialQueue _performNext] + 189
    20  FrontBoardServices                  0x00000001104e6925 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    21  CoreFoundation                      0x000000010a449311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    22  CoreFoundation                      0x000000010a42e59c __CFRunLoopDoSources0 + 556
    23  CoreFoundation                      0x000000010a42da86 __CFRunLoopRun + 918
    24  CoreFoundation                      0x000000010a42d494 CFRunLoopRunSpecific + 420
    25  UIKit                               0x000000010af807e6 -[UIApplication _run] + 434
    26  UIKit                               0x000000010af86964 UIApplicationMain + 159
    27  BBC_iOS                             0x000000010735bd4f main + 111
    28  libdyld.dylib                       0x000000010da0368d start + 1
    29  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 转至元数据结尾创建: 董潇伟,最新修改于: 十二月 23, 2016 转至元数据起始第一章:isa和Class一....
    40c0490e5268阅读 1,838评论 0 9
  • 静态库与动态库的区别 首先来看什么是库,库(Library)说白了就是一段编译好的二进制代码,加上头文件就可以供别...
    吃瓜群众呀阅读 12,138评论 3 42
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,099评论 19 139
  • 转自:http://www.th7.cn/Program/IOS/201506/484001.shtml 首先是怎...
    Aiya阅读 14,920评论 2 8
  • 仅以方便自己查阅记录前言1.静态库和动态库有什么异同?静态库:链接时完整地拷贝至可执行文件中,被多次使用就有多份冗...
    190CM阅读 4,325评论 0 4