秋刀鱼会过期
秋刀鱼会过期
  • 发布:2024-08-26 11:56
  • 更新:2024-08-27 19:55
  • 阅读:162

【报Bug】ios app低版本白屏

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: Sonoma 14.5

HBuilderX类型: 正式

HBuilderX版本号: 4.07

手机系统: iOS

手机系统版本号: iOS 14

手机厂商: 苹果

手机机型: iphone 11

页面类型: vue

vue版本: vue2

打包方式: 离线

项目创建方式: HBuilderX

示例代码:

2024-08-26 11:32:01.198224+0800 HBuilder[21956:1846731] -canOpenURL: failed for URL: "taobao://" - error: "This app is not allowed to query for scheme taobao"
2024-08-26 11:32:01.198940+0800 HBuilder[21956:1846731] -canOpenURL: failed for URL: "kwai://" - error: "This app is not allowed to query for scheme kwai"
2024-08-26 11:32:01.199683+0800 HBuilder[21956:1846731] -canOpenURL: failed for URL: "awemesso://" - error: "This app is not allowed to query for scheme awemesso"
2024-08-26 11:32:01.200307+0800 HBuilder[21956:1846731] -canOpenURL: failed for URL: "pinduoduo://" - error: "This app is not allowed to query for scheme pinduoduo"
2024-08-26 11:32:01.201103+0800 HBuilder[21956:1846731] -canOpenURL: failed for URL: "openApp.jdMobile://" - error: "This app is not allowed to query for scheme openapp.jdmobile"
2024-08-26 11:32:01.288428+0800 HBuilder[21956:1846731] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/14C4792C-A5C6-4146-A0E2-6BB0E4ABA41D/Library/Cookies/Cookies.binarycookies
2024-08-26 11:32:01.289206+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] ##CoreApp##...app start load..
2024-08-26 11:32:01.291309+0800 HBuilder[21956:1846731] -canOpenURL: failed for URL: "hbuilder://" - error: "未能完成操作。(OSStatus错误-10814。)"
2024-08-26 11:32:01.291363+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] ##CoreApp##...createAppRuntime..
2024-08-26 11:32:01.304227+0800 HBuilder[21956:1846757] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:01.401319+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] splash screen needs to be closed automatically
2024-08-26 11:32:01.492276+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] ##CoreApp##...createAppWindow..
2024-08-26 11:32:01.495417+0800 HBuilder[21956:1846764] <Weex>[error]script_bridge.h:168, <WeexCore> xxx set_core_side is runing and 0x281638370
2024-08-26 11:32:01.495749+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] ##CoreApp##...Create a homepage...
2024-08-26 11:32:01.498119+0800 HBuilder[21956:1846766] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:01.498423+0800 HBuilder[21956:1846766] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:01.556526+0800 HBuilder[21956:1846758] [connection] nw_endpoint_handler_set_adaptive_read_handler [C1.1 118.25.109.12:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: pdp_ip0, ipv4, dns, expensive)] unregister notification for read_timeout failed
2024-08-26 11:32:01.556626+0800 HBuilder[21956:1846758] [connection] nw_endpoint_handler_set_adaptive_write_handler [C1.1 118.25.109.12:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: pdp_ip0, ipv4, dns, expensive)] unregister notification for write_timeout failed
2024-08-26 11:32:01.642905+0800 HBuilder[21956:1846731] WF: === Starting WebFilter logging for process HBuilder
2024-08-26 11:32:01.642951+0800 HBuilder[21956:1846731] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2024-08-26 11:32:01.642988+0800 HBuilder[21956:1846731] WF: _WebFilterIsActive returning: NO
2024-08-26 11:32:01.643228+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] show NWindow--[1]
2024-08-26 11:32:01.646205+0800 HBuilder[21956:1846731] [Runtime][INFO:] refreshWhitePageCheckWebview---evt[3]---[<PDRCoreAppFrame: 0x156827200; frame = (0 0; 390 844); clipsToBounds = YES; layer = <CALayer: 0x281447900>>]
2024-08-26 11:32:01.646312+0800 HBuilder[21956:1846731] [Runtime][INFO:] Archiver file fullPath /var/mobile/Containers/Data/Application/14C4792C-A5C6-4146-A0E2-6BB0E4ABA41D/Library/Pandora/apps/UNI190F094/data/download.plist
2024-08-26 11:32:01.646432+0800 HBuilder[21956:1846731] [Runtime][INFO:] Archiver file fullPath /var/mobile/Containers/Data/Application/14C4792C-A5C6-4146-A0E2-6BB0E4ABA41D/Library/Pandora/apps/UNI190F094/data/upload.plist
2024-08-26 11:32:01.646551+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] core started
2024-08-26 11:32:01.690065+0800 HBuilder[21956:1846757] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:01.690254+0800 HBuilder[21956:1846757] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:01.697722+0800 HBuilder[21956:1846731] <Weex>[log]WXSDKInstance.m:503, Start rendering page:app-service.js
2024-08-26 11:32:01.717888+0800 HBuilder[21956:1846758] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:01.717976+0800 HBuilder[21956:1846758] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:01.725469+0800 HBuilder[21956:1846731] [Runtime][INFO:] check webview enable white check--[1]--manifesttarget [1]
2024-08-26 11:32:01.767573+0800 HBuilder[21956:1846762] <Weex>[error]WXExceptionUtils.m:38, Weex exception errCode: -9700 function: func: createInstance arg:start message: [WX_KEY_EXCEPTION_WXBRIDGE] exception: SyntaxError: Invalid regular expression: invalid group specifier name
stack:(null)
2024-08-26 11:32:01.767880+0800 HBuilder[21956:1846762] <Weex>[error]WXMonitor.m:289, [WX_KEY_EXCEPTION_WXBRIDGE] exception: SyntaxError: Invalid regular expression: invalid group specifier name
stack:(null)
2024-08-26 11:32:02.005664+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] core handle startparam end
2024-08-26 11:32:02.005907+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] ##DCAD--closeSplashscreen
2024-08-26 11:32:02.012382+0800 HBuilder[21956:1846731] [Runtime][DEBUG:] -----deviceid+(null)
2024-08-26 11:32:02.012601+0800 HBuilder[21956:1846766] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:02.012656+0800 HBuilder[21956:1846766] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 89 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2024-08-26 11:32:02.182550+0800 HBuilder[21956:1846766] [connection] nw_endpoint_handler_set_adaptive_read_handler [C2.1 150.158.3.107:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: pdp_ip0, ipv4, dns, expensive)] unregister notification for read_timeout failed
2024-08-26 11:32:02.182675+0800 HBuilder[21956:1846766] [connection] nw_endpoint_handler_set_adaptive_write_handler [C2.1 150.158.3.107:443 ready channel-flow (satisfied (Path is satisfied), viable, interface: pdp_ip0, ipv4, dns, expensive)] unregister notification for write_timeout failed
2024-08-26 11:32:04.082371+0800 HBuilder[21956:1846758] [connection] nw_resolver_start_query_timer_block_invoke [C2] Query fired: did not receive all answers in time for s1.dcloud.net.cn:443

操作步骤:

真机预览就白屏

预期结果:

不白屏

实际结果:

白屏

bug描述:

在xcode中真机预览启动白屏,高版本的ios系统可以正常运行例如ios17.4,低版本的直接白屏例如14.7

2024-08-26 11:56 负责人:无 分享
已邀请:
DCloud_iOS_XHY

DCloud_iOS_XHY

报错信息 exception: SyntaxError: Invalid regular expression: invalid group specifier name
stack:(null)
这是因为命名捕获组在较低版本的 iOS 中不受支持。命名捕获组是 ECMAScript 2018 (ES9) 中引入的特性,而较低版本的 iOS 可能不支持这个特性。

要解决这个问题,你可以避免使用命名捕获组,改用普通的捕获组并手动处理匹配结果。例如:

// 使用普通捕获组而不是命名捕获组  
const regex = /(\w+)/;  
const str = "example";  
const match = str.match(regex);  

if (match) {  
  const name = match[1]; // 手动获取第一个捕获组  
  console.log(name); // 输出: example  
}
  • Spring_CTH

    你好 我们现在所有项目 ios真机运行 都不同步更新 是什么问题 能帮忙看看吗

    2024-08-27 20:22

  • 秋刀鱼会过期 (作者)

    解决了,感谢

    2024-09-02 15:37

秋刀鱼会过期

秋刀鱼会过期 (作者) - 及时行乐

有人遇到过吗

BFC

BFC

你好,上传一下可复现的工程

  • Spring_CTH

    你为什么不解决一下 我们的问题呢 ios真机不更新 白屏的问题?

    2024-08-27 20:21

  • BFC

    回复 Spring_CTH: 已经通知技术那边了

    2024-08-27 23:19

  • Spring_CTH

    回复 BFC: 好的 那我等等

    2024-08-28 09:25

要回复问题请先登录注册