2***@qq.com
2***@qq.com
  • 发布:2023-09-27 16:10
  • 更新:2023-12-28 16:55
  • 阅读:498

XCode15 打开wgt文件报错 WeexCoreManager::Instance() EXC_BAD_ACCESS (code=1

分类:uni小程序sdk

产品分类: uni小程序SDK

手机系统: iOS

手机系统版本号: iOS 14

手机厂商: 苹果

手机机型: 所有机型,所有系统

页面类型: vue

SDK版本号: 3.8.12

示例代码:
[DCUniMPSDKEngine openUniMP:appId configuration:configuration completed:^(DCUniMPInstance * _Nullable uniMPInstance, NSError * _Nullable error) {  
    if (uniMPInstance) {  
        // success  
    } else {  
        // error  
        [FYProgressHUD topWindonsShowToastStatus:@"打开uniApp失败"];  
    }  
}];  

打开小程序SDK时候,奔溃。
[WXCoreBridge install]
com.taobao.weex.component (11): EXC_BAD_ACCESS (code=1, add2023-09-27 15:55:12.534391+0800 FangYou[10737:799687]

操作步骤:

XCode15 运行项目打开wgt文件,联调奔溃,必现问题。

预期结果:

预期结果是不崩溃

实际结果:

闪退,奔溃

bug描述:

[WXCoreBridge install]
com.taobao.weex.component (11): EXC_BAD_ACCESS (code=1, add2023-09-27 15:55:12.534391+0800 FangYou[10737:799687]

控制台打印:

[connection] nw_endpoint_handler_set_adaptive_read_handler [C6.1 140.249.61.227:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for read_timeout failed
2023-09-27 15:55:12.534513+0800 FangYou[10737:799687] [connection] nw_endpoint_handler_set_adaptive_write_handler [C6.1 140.249.61.227:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, dns)] unregister notification for write_timeout failed
2023-09-27 15:55:13.204533+0800 FangYou[10737:799349] 下载成功,文件保存路径:file:///var/mobile/Containers/Data/Application/5181744E-DED4-4EDD-ACD0-DE10472DE844/Documents/UNI9C901BD.wgt
2023-09-27 15:55:13.766062+0800 FangYou[10737:799349] 小程序 UNI9C901BD 应用资源文件部署成功,版本信息:{
code = 102;
name = "1.0.6";
}
2023-09-27 15:55:13.772329+0800 FangYou[10737:799349] [Runtime][DEBUG:] ##CoreApp##...app start load..
2023-09-27 15:55:13.773172+0800 FangYou[10737:799349] [Runtime][DEBUG:] ##CoreApp##...createAppRuntime..
2023-09-27 15:55:13.820180+0800 FangYou[10737:799349] [Runtime][DEBUG:] ##CoreApp##...createAppWindow..
2023-09-27 15:55:13.827995+0800 FangYou[10737:799349] [Runtime][DEBUG:] ##CoreApp##...创建首页..ress=0x1f8000)

2023-09-27 16:10 负责人:无 分享
已邀请:
h***@163.com

h***@163.com

这是因为xcode15动态库链接引起的问题,解决办法:Build Setting>Other Linker Flags 添加【-ld64】或者 【-ld_classic】都可以。如果是多TARGETS项目,最好添加到PROJECT,不是的话哪里都无所谓。

要回复问题请先登录注册