今天适配iOS9一些显示问题,给测试同事打的第一个没问题安装成功了,同事测出来一Bug我改了一下,再打包就安装不上了,于是真机了一下,发现崩溃如下:
* thread #1: tid = 0xe03ea, 0x00000001002751e4
UBoxOnline`wbsdkjk_encode_add_atom_to_buffer(encodeState=0x00000001030c4000,
objectPtr=@"iPhone") + 872 at WBSDKJSONKit.m:2863, queue =
'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1,
address=0xa00656e6f6850696)
* frame #0:
0x00000001002751e4
UBoxOnline`wbsdkjk_encode_add_atom_to_buffer(encodeState=0x00000001030c4000,
objectPtr=@"iPhone") + 872 at WBSDKJSONKit.m:2863 [opt]
frame #1: 0x000000010027646c
UBoxOnline`wbsdkjk_encode_add_atom_to_buffer(encodeState=0x00000001030c4000,
objectPtr=) + 5616 at WBSDKJSONKit.m:3075 [opt]
frame #2: 0x0000000100274a8c
UBoxOnline`-[WBSDKJKSerializer
serializeObject:options:encodeOption:block:delegate:selector:error:](self=,
_cmd=, object=7 key/value pairs, optionFlags=, encodeOption=10,
block=, delegate=, selector=, error=0x0000000000000000) + 988 at
WBSDKJSONKit.m:3140 [opt]
frame #3: 0x0000000100274694
UBoxOnline`+[WBSDKJKSerializer
serializeObject:options:encodeOption:block:delegate:selector:error:](self=,
_cmd=, object=, optionFlags=, encodeOption=, block=, delegate=,
selector=, error=0x0000000000000000) + 148 at WBSDKJSONKit.m:3095
[opt]
frame #4: 0x0000000100276f44
UBoxOnline`-[NSDictionary(self=, _cmd=) weibosdk_WBSDKJSONString] +
68 at WBSDKJSONKit.m:3282 [opt]
frame #5: 0x000000010025a55c
UBoxOnline`-[WBAidManager generateMFPString](self=, _cmd=) + 1036
at WBAidManager.m:278 [opt]
frame #6: 0x000000010025a6e0
UBoxOnline`-[WBAidManager fetchAid:](self=0x000000014d513a60,
_cmd=, shouldRetryIfErrorHappened=NO) + 148 at WBAidManager.m:307
[opt]
frame #7: 0x000000010025a140
UBoxOnline`-[WBAidManager
advertisementIdentifier](self=0x000000014d513a60, _cmd=) + 96 at
WBAidManager.m:173 [opt]
frame #8: 0x000000010025a96c
UBoxOnline`-[WBAidManager fetchAidIfNeededWithApp:](self=, _cmd=,
app=) + 60 at WBAidManager.m:341 [opt]
frame #9: 0x000000010026e5dc
UBoxOnline`+[WeiboSDK registerAppWithApp:](self=, _cmd=, app=) +
588 at WeiboSDK.m:1013 [opt]
frame #10: 0x000000010026e918
UBoxOnline`+[WeiboSDK registerAppWithAppKey:](self=WeiboSDK, _cmd=,
appKey=) + 160 at WeiboSDK.m:1034 [opt]
frame #11: 0x0000000100159e70
UBoxOnline`-[AppDelegate registerOrStartThridSDK](self=, _cmd=) +
48 at AppDelegate.m:187 [opt]
frame #12: 0x00000001001597fc
UBoxOnline`-[AppDelegate
application:didFinishLaunchingWithOptions:](self=0x000000014d622100,
_cmd=, application=, launchOptions=) + 240 at AppDelegate.m:69
[opt]
frame #13: 0x00000001881e3184
UIKit`-[UIApplication
_handleDelegateCallbacksWithOptions:isSuspended:restoreState:] +
400
frame #14: 0x000000018840be60
UIKit`-[UIApplication
_callInitializationDelegatesForMainScene:transitionContext:] +
2904
frame #15: 0x00000001884101a4
UIKit`-[UIApplication
_runWithMainScene:transitionContext:completion:] + 1660
frame #16: 0x000000018840d2e4
UIKit`-[UIApplication workspaceDidEndTransaction:] + 168
frame #17: 0x000000018c95f7ec
FrontBoardServices`-[FBSSerialQueue _performNext] + 184
frame #18: 0x000000018c95fb6c
FrontBoardServices`-[FBSSerialQueue _performNextFromRunLoopSource]
+ 56
frame #19: 0x0000000182bd05a4
CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
+ 24
frame #20: 0x0000000182bd0038
CoreFoundation`__CFRunLoopDoSources0 + 540
frame #21: 0x0000000182bcdd38
CoreFoundation`__CFRunLoopRun + 724
frame #22: 0x0000000182afcdc0
CoreFoundation`CFRunLoopRunSpecific + 384
frame #23: 0x00000001881dc0ac
UIKit`-[UIApplication _run] + 460
frame #24: 0x00000001881d6f44
UIKit`UIApplicationMain + 204
frame #25: 0x0000000100176e2c
UBoxOnline`main(argc=, argv=) + 88 at main.m:16 [opt]
frame #26: 0x000000019803a8b8
libdyld.dylib`start + 4
我在网上找了找一些解决办法。build setting 找到other
linker添加选项的,还有深入讲解这个问题的。我是各种试就是不行。最终解决方法就是换新SDK!!!!!https://github.com/sinaweibosdk/weibo_ios_sdk