1***@qq.com
1***@qq.com
  • 发布:2020-12-02 17:35
  • 更新:2021-10-12 07:52
  • 阅读:1053

【报Bug】最新离线SDK运行报错:__dcloud_io_setBackgroundColor to WKScrollView

分类:HTML5+

产品分类: HTML5+

HBuilderX版本号: 2.9.11

手机系统: iOS

手机系统版本号: IOS 14

手机厂商: 苹果

手机机型: 6s

打包方式: 离线

示例代码:
  • (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions {

    [PDRCore initEngineWihtOptions:launchOptions
    withRunMode:PDRCoreRunModeNormal withDelegate:self];

    [[PDRCore Instance] start];
    return YES;
    }

操作步骤:

APP启动 调用 [[PDRCore Instance] start]; 即闪退

预期结果:

正常运行

实际结果:

闪退

bug描述:

老版本SDK跟新,全部替换。启动闪退 必现

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Have you sent -dcloud_io_setBackgroundColor: to <WKScrollView: 0x15e070600; baseClass = UIScrollView; frame = (0 0; 375 647); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x2815e8fc0>; layer = <CALayer: 0x281b3db40>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}> off the main thread? To verify, look for a complaint in the logs: "Unsupported use of UIKit…", and fix the problem if you find it. If your use is main-thread only please file a radar on UIKit, and attach this log. exercisedImplementations = {
"
dcloud_io_setBackgroundColor:" = (
);
}'

闪退时函数调用栈在附件图可见

2020-12-02 17:35 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com (作者)

问答区 最近有一个相同的问题 @DCloud_iOS_CLP @DCloud_iOS_DJX @DCloud_IOS_XTY

1***@qq.com

1***@qq.com (作者)

https://github.com/dcloudio/native-docs/issues/13

qq1245

qq1245

我也遇到了同样的问题,作者解决了吗

  • 1***@qq.com (作者)

    https://ask.dcloud.net.cn/question/106762?notification_id-860993rf-falseitem_id-151641#!answer_151641 我在这个帖子里面回复了我碰到的问题 你可以参考

    2021-02-04 10:56

veuhhh

veuhhh

项目开发中也遇到了类似的问题,请问这个问题具体的原因是什么?

该问题目前已经被锁定, 无法添加新回复