当前位置: 首页 > news >正文

Flutter求助贴

报错信息:The Dart VM Service was not discovered after 30 seconds. This is taking much longer than expected...

基本情况:

硬件:mac(15.3.1),iPad(iOS 16.6),iPhone 16 pro(iOS 18.4)

项目环境

flutter:3.16.9
dart:3.2.6

今天把Xcode升级到16.3,(升级之前无任何问题)

使用Xcode运行Flutter项目iPad(iOS 16.6),iPhone 16 pro(iOS 18.4)两个设备都没有任何问题

使用Android studio运行Flutter项目

在iPhone 16 pro(iOS 18.4)没有任何问题
但是在iPad(iOS 16.6)下报错(如下图),虽然项目能跑起来 但是控制台没有任何的print内容,有没有遇到这种情况的,在github上也没找到个所以然

尝试过程:

flutter clean: 无用

flutter run --host-vmservice-port=12345:无用

切换flutter 3.24.5 :无用

修改setting-Dart中的Webdev server port :无用

重启大法:无用

搜到的其他乱七八糟的操作:无用

Launching lib/main.dart on 123456 in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 346QFZZACH
Running Xcode build...
Xcode build done.                                           44.6s
Installing and launching...
The Dart VM Service was not discovered after 30 seconds. This is taking much longer than expected...
(lldb) process interrupt
[ERROR:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.mm(42)] Using the Impeller rendering backend.
注册异常保护范围=>0x10154cf18, 0x10154ec34
注册异常保护范围模块=>AliyunIdentityPlatform
注册异常保护范围=>0x101546240, 0x101546c54
注册异常保护范围模块=>AliyunIdentityCenter
[IFLYTEK] login with params:appid=8d48a2d7
[IFLYTEK] -[IFlySpeechUtility login],login=0
[] nw_path_necp_check_for_updates Failed to copy updated result (22)
设备指纹初始化,结果 10000
初始化成功,后续可以正常调用getSession接口
[IFLYTEK] +[IFlySystemInfo getWorkPath],_gMscLogPath=(null)
[IFLYTEK] +[IFlyReachability currentReachabilityStatus][IN]
[IFLYTEK] -[IFlyReachability networkStatusForFlags:][IN]
[IFLYTEK] Reachability Flag Status: -R ------- networkStatusForFlags
[IFLYTEK] -[IFlyReachability networkStatusForFlags:][OUT]
[IFLYTEK] -[IFlyReachability dealloc][IN]
[IFLYTEK] -[IFlyReachability stopNotifier][IN]
[IFLYTEK] -[IFlyReachability stopNotifier][OUT]
[IFLYTEK] -[IFlyReachability dealloc][OUT]
[IFLYTEK] +[IFlyReachability currentReachabilityStatus][OUT]
[IFLYTEK] +[IFlySystemInfo getCarrierName][IN]
[IFLYTEK] +[IFlySystemInfo getCarrierName][OUT]
[IFLYTEK] login -[IFlyLoginParam toString:] SessionParam:timeout=20000,appid=8d48a2d7,msc.ver=1.0.1227.1180,openudid=1db54580aad8553760ffb8dceab96914d16136a9,work_dir=/var/mobile/Containers/Data/Application/214518F6-0EFF-436C-8619-9FBC90CD6130/Library/Caches,carrier=,os.system=iPadOS,os.release=16.6,os.version=16.6,os.model=iPad12.1,os.resolution=750*1334,os.manufact=apple,os.jailbreak=0,app.name=北麒AI店长,app.path=/private/var/containers/Bundle/Application/271C96B6-7913-4B8B-936F-22CF03A10652/Runner.app,app.pkg=Runner.app,app.bid=com.example.sdmm.flutter.store,net_type=wifi,appid=8d48a2d7
[IFLYTEK] paramString:
timeout=20000,appid=8d48a2d7,msc.ver=1.0.1227.1180,openudid=1db54580aad8553760ffb8dceab96914d16136a9,work_dir=/var/mobile/Containers/Data/Application/214518F6-0EFF-436C-8619-9FBC90CD6130/Library/Caches,carrier=,os.system=iPadOS,os.release=16.6,os.version=16.6,os.model=iPad12.1,os.resolution=750*1334,os.manufact=apple,os.jailbreak=0,app.name=北麒AI店长,app.path=/private/var/containers/Bundle/Application/271C96B6-7913-4B8B-936F-22CF03A10652/Runner.app,app.pkg=Runner.app,app.bid=com.example.sdmm.flutter.store,net_type=wifi,appid=8d48a2d7
[IFLYTEK] login in
[connection] nw_socket_handle_socket_event [C4:2] Socket SO_ERROR [61: Connection refused]
Connection 4: received failure notification
Connection 4: failed to connect 1:61, reason -1
Connection 4: encountered error(1:61)
[connection] nw_connection_copy_connected_local_endpoint_block_invoke [C4] Client called nw_connection_copy_connected_local_endpoint on unconnected nw_connection
[connection] nw_connection_copy_connected_remote_endpoint_block_invoke [C4] Client called nw_connection_copy_connected_remote_endpoint on unconnected nw_connection
Task <CC0F6ABF-5D15-4182-BCD0-E41FCB6134A6>.<5> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
Task <CC0F6ABF-5D15-4182-BCD0-E41FCB6134A6>.<5> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "无法连接服务器。" UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x280139b30 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: lo0, _kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <CC0F6ABF-5D15-4182-BCD0-E41FCB6134A6>.<5>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <CC0F6ABF-5D15-4182-BCD0-E41FCB6134A6>.<5>"
), NSLocalizedDescription=无法连接服务器。, NSErrorFailingURLStringKey=http://127.0.0.1:8100/status, NSErrorFailingURLKey=http://127.0.0.1:8100/status, _kCFStreamErrorDomainKey=1}
error: Failed to halt process: Process is not running.
Debug service listening on ws://127.0.0.1:56485/0ZOw9sxGZCg=/ws
Syncing files to device 123456...

http://www.dtcms.com/a/107196.html

相关文章:

  • 失效模式分析(FMEA)、控制计划(CP)、流程图(Flowchart)的无缝衔接与高效管理--全星FMEA软件系统
  • 《自然-方法》2024年度技术:空间蛋白质组学(spatial proteomics)
  • PyArrow 核心技术与应用:高效数据处理与跨生态集成实践
  • C语言常见3种排序
  • 利用vmware快速安装一个可以使用的centos7系统
  • QML弹窗
  • H(e^j\omega) H(\omega)
  • 计算机网络复习 吉林大学
  • PH热榜 | 2025-04-02
  • OSI每一层的SAP和CEP分别是什么
  • 宠物店小程序怎么做?助力实体店实现营销突破
  • vue3+vite,引入Tailwind问题汇总
  • 模型开源|支持东方40语种+中国22方言的新SOTA语音大模型Dolphin开源啦!
  • 制造业数字化转型:流程改造先行还是系统固化数据?基于以MTO和MTS的投资回报分析
  • 防爆风扇选型指南:根据风量风压匹配应用场景​
  • C语言函数实战指南:从零到一掌握函数设计与10+案例解析(附源码)
  • PPTAgent:一款开源免费生成和评估幻灯片的项目
  • QILSTE/旗光
  • RabbitMQ基础
  • 【5090d】配置运行和微调大模型所需基础环境【一】
  • 简述竞赛经历在考研复试中的作用
  • rom定制系列------红米note8pro原生安卓12批量线刷 安卓14批量线刷定制功能项 解锁bl后fast刷写
  • Bash 花括号扩展 {start..end} 进阶使用指南——字典生成
  • Linux进程间通信(1)
  • 天梯赛 L2-025 分而治之
  • GoldenEye: 1靶场渗透
  • 第四章,动态路由介绍//////RIP
  • 【Kubernetes】如何使用 kubeadm 搭建 Kubernetes 集群?还有哪些部署工具?
  • 基于昇腾NPU的YOLOv8部署
  • redis一些常用的命令(1)