收藏
回答

使用微信sdk的支付功能时,注册过程错误

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小游戏 Bug iOS iOS 14.6 iphone11 8.0.13

调用。 [WXApi registerApp:@"aaaaaaa" universalLink:@"https://xxxxxxx.com/"];时候错误,

使用自检函数

 [WXApi checkUniversalLinkReady:^(WXULCheckStep step, WXCheckULStepResult* result) {


        NSLog(@"checkUniversalLinkReady。  %@, %u, %@, %@", @(step), result.success, result.errorInfo, result.suggestion);


    }];

报如下错误

2021-09-08 11:02:18.784425+0800 V[43545:3028320] checkUniversalLinkReady。  0, 1, check passed, 


2021-09-08 11:02:18.784540+0800 V[43545:3028320] checkUniversalLinkReady。  1, 1, check passed, 


2021-09-08 11:02:18.786800+0800 V[43545:3028320] checkUniversalLinkReady。  2, 1, check passed, 


2021-09-08 11:02:18.795258+0800 V[43545:3028320] WeChatSDK: wxlog:set property list


2021-09-08 11:02:18.809713+0800 V[43545:3028320] +[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x105e45070


2021-09-08 11:02:18.818423+0800 V[43545:3028320] Uncaught exception: NSInvalidArgumentException: +[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x105e45070


(


0   CoreFoundation                      0x000000019dde671c 338F58B1-9B75-38A0-B908-E2574AB1D39A + 1218332


1   libobjc.A.dylib                     0x00000001b28f07a8 objc_exception_throw + 60


2   CoreFoundation                      0x000000019dcee72c 338F58B1-9B75-38A0-B908-E2574AB1D39A + 202540


3   CoreFoundation                      0x000000019dde9260 338F58B1-9B75-38A0-B908-E2574AB1D39A + 1229408


4   CoreFoundation                      0x000000019ddeb560 _CF_forwarding_prep_0 + 96


5   UnityFramework                      0x000000010322c694 +[WXApi checkUniversalLinkReady:] + 740


6   UnityFramework                      0x0000000102192d6c -[UnityAppController application:didFinishLaunchingWithOptions:] + 124


7   UnityFramework                      0x00000001023e2a00 -[VuforiaNativeRendererController application:didFinishLaunchingWithOptions:] + 92


8   UnityFramework                      0x0000000103345584 __67-[SSDKApplication(UIApplicationHook) _application_didFinishLaunch:]_block_invoke + 212


9   UIKitCore                           0x00000001a07d3980 41D9BF62-8439-3B21-9959-4E27E75C294E + 12347776


10  UIKitCore                           0x00000001a07d5414 41D9BF62-8439-3B21-9959-4E27E75C294E + 12354580


11  UIKitCore                           0x00000001a07db560 41D9BF62-8439-3B21-9959-4E27E75C294E + 12379488


12  UIKitCore                           0x000000019fe2f1a4 41D9BF62-8439-3B21-9959-4E27E75C294E + 2236836


13  UIKitCore                           0x00000001a0398458 _UIScenePerformActionsWithLifecycleActionMask + 104


14  UIKitCore                           0x000000019fe2fd3c 41D9BF62-8439-3B21-9959-4E27E75C294E + 2239804


15  UIKitCore                           0x000000019fe2f7fc 41D9BF62-8439-3B21-9959-4E27E75C294E + 2238460


16  UIKitCore                           0x000000019fe2fb4c 41D9BF62-8439-3B21-9959-4E27E75C294E + 2239308


17  UIKitCore                           0x000000019fe2f388 41D9BF62-8439-3B21-9959-4E27E75C294E + 2237320


18  UIKitCore                           0x000000019fe378cc 41D9BF62-8439-3B21-9959-4E27E75C294E + 2271436


19  UIKitCore                           0x00000001a02a5e84 41D9BF62-8439-3B21-9959-4E27E75C294E + 6917764


20  UIKitCore                           0x00000001a03b1268 _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 276


21  UIKitCore                           0x000000019fe375c4 41D9BF62-8439-3B21-9959-4E27E75C294E + 2270660


22  UIKitCore                           0x000000019fc5f4ac 41D9BF62-8439-3B21-9959-4E27E75C294E + 337068


23  UIKitCore                           0x000000019fc5de2c 41D9BF62-8439-3B21-9959-4E27E75C294E + 331308


24  UIKitCore                           0x000000019fc5f0d4 41D9BF62-8439-3B21-9959-4E27E75C294E + 336084


25  UIKitCore                           0x00000001a07d9700 41D9BF62-8439-3B21-9959-4E27E75C294E + 12371712


26  UIKitCore                           0x00000001a02cf4e4 41D9BF62-8439-3B21-9959-4E27E75C294E + 7087332


27  FrontBoardServices                  0x00000001ad3b85d8 7C0B0AF0-3371-38AF-8534-5E4BB65286F4 + 42456


28  FrontBoardServices                  0x00000001ad3e3d44 7C0B0AF0-3371-38AF-8534-5E4BB65286F4 + 220484


29  FrontBoardServices                  0x00000001ad3c76a4 7C0B0AF0-3371-38AF-8534-5E4BB65286F4 + 104100


30  FrontBoardServices                  0x00000001ad3e3a0c 7C0B0AF0-3371-38AF-8534-5E4BB65286F4 + 219660


31  libdispatch.dylib                   0x000000019d9d381c 9555D7D9-9C92-3AF3-9837-AE1F5AA7DA44 + 18460


32  libdispatch.dylib                   0x000000019d9d730c 9555D7D9-9C92-3AF3-9837-AE1F5AA7DA44 + 33548


33  FrontBoardServices                  0x00000001ad40bfa0 7C0B0AF0-3371-38AF-8534-5E4BB65286F4 + 384928


34  FrontBoardServices                  0x00000001ad40bc30 7C0B0AF0-3371-38AF-8534-5E4BB65286F4 + 384048


35  FrontBoardServices                  0x00000001ad40c184 7C0B0AF0-3371-38AF-8534-5E4BB65286F4 + 385412


36  CoreFoundation                      0x000000019dd60990 338F58B1-9B75-38A0-B908-E2574AB1D39A + 670096


37  CoreFoundation                      0x000000019dd6088c 338F58B1-9B75-38A0-B908-E2574AB1D39A + 669836


38  CoreFoundation                      0x000000019dd5fb90 338F58B1-9B75-38A0-B908-E2574AB1D39A + 666512


39  CoreFoundation                      0x000000019dd59b70 338F58B1-9B75-38A0-B908-E2574AB1D39A + 641904


40  CoreFoundation                      0x000000019dd59308 CFRunLoopRunSpecific + 600


41  GraphicsServices                    0x00000001b53dc734 GSEventRunModal + 164


42  UIKitCore                           0x00000001a07d775c 41D9BF62-8439-3B21-9959-4E27E75C294E + 12363612


43  UIKitCore                           0x00000001a07dcfcc UIApplicationMain + 168


44  UnityFramework                      0x00000001021982d8 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 108


45  V                                   0x0000000100a17a18 main + 68


46  libdyld.dylib                       0x000000019da15cf8 FF7D2567-9277-3AA6-B3DD-2C5748E432A6 + 7416


)


2021-09-08 11:02:18.819115+0800 V[43545:3028320] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[WXApi genExtraUrlByReq:withAppData:]: unrecognized selector sent to class 0x105e45070'

最后一次编辑于  2021-09-08
回答关注问题邀请回答
收藏
登录 后发表内容