有赞新零售社区

发帖
API使用问题»加入SDK调用登录接口程序直接崩溃

加入SDK调用登录接口程序直接崩溃

蓝蜻蜓商城 2017-04-12 1488 浏览 1 评论 | 只看楼主 [打印]
AppSDK
店铺名称: 蓝蜻蜓商城
UA: 隐藏内容
下面是错误日志
2017-04-12 14:52:21.852 LQTHospitalInfectionYDGK[1020:31895] UMLOG: error: session_id=FC7DD77D671A473757DB6CF0F8AC7D71, context=-[__NSDictionaryM addYZObject:forKey:]: unrecognized selector sent to instance 0x608000447590
(null)
((
        0   CoreFoundation                      0x0000000108feed4b __exceptionPreprocess + 171
        1   libobjc.A.dylib                     0x000000010cb0321e objc_exception_throw + 48
        2   CoreFoundation                      0x000000010905ef04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
        3   CoreFoundation                      0x0000000108f74005 ___forwarding___ + 1013
        4   CoreFoundation                      0x0000000108f73b88 _CF_forwarding_prep_0 + 120
        5   LQTHospitalInfectionYDGK            0x00000001077f87e7 -[UserAgentService loginWithUserId:userName:nickName:gender:avatar:telephone:callback:] + 359
        6   LQTHospitalInfectionYDGK            0x00000001077e2eff +[YZSDK registerYZUser:callBack:] + 559
        7   LQTHospitalInfectionYDGK            0x000000010745bbe5 -[BaseWebController loginAndloadUrl:] + 389
        8   LQTHospitalInfectionYDGK            0x000000010745b83e -[BaseWebController viewDidLoad] + 238
        9   LQTHospitalInfectionYDGK            0x0000000107296dde -[WKWebViewController viewDidLoad] + 78
        10  UIKit                               0x000000010d7f4a3d -[UIViewController loadViewIfRequired] + 1258
        11  UIKit                               0x000000010d7fb062 -[UIViewController __viewWillAppear:] + 118
        12  UIKit                               0x000000010d8261d3 -[UINavigationController _startCustomTransition:] + 1290
        13  UIKit                               0x000000010d836e48 -[UINavigationController _startDeferredTransitionIfNeeded:] + 697
        14  UIKit                               0x000000010d837fdb -[UINavigationController __viewWillLayoutSubviews] + 58
        15  UIKit                               0x000000010da2edd7 -[UILayoutContainerView layoutSubviews] + 223
        16  UIKit                               0x000000010d717ab8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
        17  QuartzCore                          0x000000010aa4ebf8 -[CALayer layoutSublayers] + 146
        18  QuartzCore                          0x000000010aa42440 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
        19  QuartzCore                          0x000000010aa422be _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
        20  QuartzCore                          0x000000010a9d0318 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
        21  QuartzCore                          0x000000010a9fd3ff _ZN2CA11Transaction6commitEv + 475
        22  QuartzCore                          0x000000010a9fdd6f _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 113
        23  CoreFoundation                      0x0000000108f93267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        24  CoreFoundation                      0x0000000108f931d7 __CFRunLoopDoObservers + 391
        25  CoreFoundation                      0x0000000108f77f8e __CFRunLoopRun + 1198
        26  CoreFoundation                      0x0000000108f77884 CFRunLoopRunSpecific + 420
        27  GraphicsServices                    0x000000010f066a6f GSEventRunModal + 161
        28  UIKit                               0x000000010d652c68 UIApplicationMain + 159
        29  LQTHospitalInfectionYDGK            0x0000000107487b2f main + 111
        30  libdyld.dylib                       0x000000011131a68d start + 1
)

用手机打开
收藏 ··· 回复
    你好,请参考以下处理方法,SDK 常见问题第13条:http://open.youzan.com/docs/appsdk#419
    13.iOS SDK 调用注册接口报错 [__NSDictionaryM addYZObject:forKey:]: unrecognized selector sent to instance xxxxxxxxxxxxxx'
    需要在“Other Linker Flags”里加上“-ObjC”。






      1跳至
      您需要登录后才可以回帖 登录 | 立即注册

      本版积分规则

      复制链接
      新浪微博
      QQ空间
      微信扫码
      • 回复

      • 评分

      客服工作时间是9:00-18:00,客服妹子当前不在线,若不能及时回复请谅解。试试右上角的搜索吧,论坛有丰富的经验贴、公告贴,相信一定能够帮到您~

      复制成功