sinaweibosdk / weibo_ios_sdk

新浪微博 IOS SDK
http://weibo.com
Other
1.44k stars 565 forks source link

Error updating from 2.X to 3.X #186

Closed deneb42 closed 8 years ago

deneb42 commented 8 years ago

Hello, I'm upgrading from 2.5 to 3.1.3, but I am experiencing some issue when calling [WeiboSDK registerApp:myAppId];

Here is the error message :

-[NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to instance 0x17045ad30
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteMutableData wbsdk_base64EncodedString]: unrecognized selector sent to instance 0x17045ad30'

And here's the callstack:

-[WBMFPRSA encrypt:](self=<unavailable>, _cmd=<unavailable>, plainText=<unavailable>) + 132 at WBAidManager.m:653 [opt]
-[WBAidManager generateMFPString](self=<unavailable>, _cmd=<unavailable>) + 1300 at WBAidManager.m:275 [opt]
-[WBAidManager fetchAid:](self=0x00000001748326e0, _cmd=<unavailable>, shouldRetryIfErrorHappened=NO) + 116 at WBAidManager.m:295 [opt]
-[WBAidManager advertisementIdentifier](self=0x00000001748326e0, _cmd=<unavailable>) + 104 at WBAidManager.m:167 [opt]
-[WBAidManager fetchAidIfNeededWithApp:](self=<unavailable>, _cmd=<unavailable>, app=<unavailable>) + 72 at WBAidManager.m:329 [opt]
+[WeiboSDK registerAppWithApp:](self=<unavailable>, _cmd=<unavailable>, app=<unavailable>) + 776 at WeiboSDK.m:1078 [opt]
+[WeiboSDK registerAppWithAppKey:](self=WeiboSDK, _cmd=<unavailable>, appKey=<unavailable>) + 140 at WeiboSDK.m:1101 [opt]

I tried the sample app which is working, and spent the day comparing the two setups to locate a possible mistake, but with no luck. Could you help me on that or provide me a distribution with the symbols to help be debug the issue ?

Thanks in advance, Benjamin

deneb42 commented 8 years ago

Note I'm building in static. This is fixed when -force_load the libWeiboSDK.a