2***@qq.com
2***@qq.com
  • 发布:2024-09-13 16:07
  • 更新:2024-09-13 19:54
  • 阅读:63

uniapp 真机调试 iOS、Android 都出现 TimeoutError

分类:HBuilderX

HbuilderX 版本:4.2.4

尝试重新打包基座,仍然无法连接调试

16:02:42.581 正在启动调试服务  
16:02:47.039 调试服务已启动。日志信息将显示在Debug窗体的Console里  
16:03:16.328 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-debugger/node_modules/puppeteer-cn-2/node_modules/puppeteer/lib/Launcher.js:359  
16:03:16.328       reject(new TimeoutError(`Timed out after ${timeout} ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r${preferredRevision}`));  
16:03:16.328              ^  
16:03:16.328   
16:03:16.328 TimeoutError: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r706915  
16:03:16.328     at Timeout.onTimeout (/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-debugger/node_modules/puppeteer-cn-2/node_modules/puppeteer/lib/Launcher.js:359:14)  
16:03:16.328     at listOnTimeout (node:internal/timers:569:17)  
16:03:16.329     at process.processTimers (node:internal/timers:512:7)  
16:03:16.329   
16:03:16.329   
16:03:16.329 Node.js v18.20.0
2024-09-13 16:07 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com

这问题我也遇到了,不知道怎么处理

设备:mac m1
软件:HbuilderX 4.24
安卓和IOS,App调试模式都无法运行,闪退报错

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

    有没有可能是端口占用,我发现调试会访问 8001 端口。

    :我启动了一个Python 服务占用了 8001 端口,不断有 app-service.js 的请求访问它。

    但是杀掉这个 Python 服务后仍然无法调试。

    2024-09-14 11:36

要回复问题请先登录注册