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

你可能感兴趣的:(weiboSDK集成报错:NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to...)