ios 跳转小程序时,
WXLaunchMiniProgramReq *launchMiniProgramReq = [WXLaunchMiniProgramReq object];
launchMiniProgramReq.userName = @"xx"; //拉起的小程序的username
launchMiniProgramReq.path = @"page/index/index?scene=xx";//拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。
launchMiniProgramReq.miniProgramType= WXMiniProgramTypeRelease; //拉起小程序的类型
[WXApi sendReq:launchMiniProgramReq];
直接崩溃,报错:
[Bugly] Trapped uncaught exception 'NSInvalidArgumentException', reason: '-[WXLaunchMiniProgramReq setMiniProgramType:]: unrecognized selector sent to instance 0x281779a40'
这是什么鬼?