我使用的swift语言,在成功用第三方登录后,我尝试用AVUser.loginWithAuthData函数来绑定AVUser,结果调用此方法的时候报了下面的错。
我的代码是这样的(swift代码):
AVOSCloudSNS.loginWithCallback({ (object, error) -> Void in
var result = object as! [NSObject : AnyObject]
AVUser.loginWithAuthData(result, platform: "weibo", block: { (user, error) -> Void in
println("user")
})
}, toPlatform: AVOSCloudSNSType.SNSSinaWeibo)
有没有高手指导一下?谢谢
2015-06-17 19:41:19.426 ZuoCi[49260:3453112] +[AVUser loginWithAuthData:platform:block:]: unrecognized selector sent to class 0x103e83c38
2015-06-17 19:41:19.463 ZuoCi[49260:3453112] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[AVUser loginWithAuthData:platform:block:]: unrecognized selector sent to class 0x103e83c38'
*** First throw call stack:
(
0 CoreFoundation 0x0000000104c2ec65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000106a86bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000104c35fad +[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000104b8c13c forwarding + 988
4 CoreFoundation 0x0000000104b8bcd8 CFforwarding_prep_0 + 120
5 ZuoCi 0x0000000103d5610b TFFC5ZuoCi22MyCenterViewController10weiboLoginFS0FCSo8UIButtonT_U_FTGSQPSs9AnyObject__GSQCSo7NSError__T_ + 891
6 ZuoCi 0x0000000103d56349 TTRXFooGSQPSs9AnyObject__oGSQCSo7NSError__dT__XFdCb_dGSQPS___dGSQS0___dT__ + 73
7 ZuoCi 0x0000000103d8a34d +[AVOSCloudSNS loginManualyWithCallback:toPlatform:] + 307
8 ZuoCi 0x0000000103d8a500 +[AVOSCloudSNS loginWithCallback:toPlatform:] + 30
9 ZuoCi 0x0000000103d50fda TFC5ZuoCi22MyCenterViewController10weiboLoginfS0FCSo8UIButtonT_ + 1050
10 ZuoCi 0x0000000103d5104a TToFC5ZuoCi22MyCenterViewController10weiboLoginfS0FCSo8UIButtonT_ + 58
11 UIKit 0x00000001057bbda2 -[UIApplication sendAction:to:from:forEvent:] + 75
12 UIKit 0x00000001058cd54a -[UIControl _sendActionsForEvents:withEvent:] + 467
13 UIKit 0x00000001058cc919 -[UIControl touchesEnded:withEvent:] + 522
14 UIKit 0x0000000105808998 -[UIWindow _sendTouchesForEvent:] + 735
15 UIKit 0x00000001058092c2 -[UIWindow sendEvent:] + 682
16 UIKit 0x00000001057cf581 -[UIApplication sendEvent:] + 246
17 UIKit 0x00000001057dcd1c _UIApplicationHandleEventFromQueueEvent + 18265
18 UIKit 0x00000001057b75dc _UIApplicationHandleEventQueue + 2066
19 CoreFoundation 0x0000000104b62431 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
20 CoreFoundation 0x0000000104b582fd __CFRunLoopDoSources0 + 269
21 CoreFoundation 0x0000000104b57934 __CFRunLoopRun + 868
22 CoreFoundation 0x0000000104b57366 CFRunLoopRunSpecific + 470
23 GraphicsServices 0x0000000107d3aa3e GSEventRunModal + 161
24 UIKit 0x00000001057ba900 UIApplicationMain + 1282
25 ZuoCi 0x0000000103d66ec7 main + 135
26 libdyld.dylib 0x00000001072e5145 start + 1
27 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
-
创建时间
15年6月17日
-
最后回复
15年6月20日
-
2
回复
-
1.0K
浏览
-
2
用户