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...
相关推荐
普罗米拉稀10 分钟前
Flutter 复用艺术:Mixin 与 Abstract 的架构哲学与线性化解密
flutter·ios·面试
yangshuo12815 小时前
AI编程工具对决:Kilo vs Augment 开发Flutter俄罗斯方块游戏实战对比
flutter·游戏·ai编程
tangweiguo030519878 小时前
Flutter 自定义 Switch 切换组件完全指南
flutter
笔沫拾光18 小时前
iOS 正式包签名指南
flutter·ios·ios签名
森之鸟1 天前
flutter项目适配鸿蒙
flutter·华为·harmonyos
傅里叶1 天前
Flutter在OrangePi 5 Plus上视频播放锁死问题
前端·flutter
书弋江山2 天前
flutter 跨平台编码库 protobuf 工具使用
android·flutter
程序员老刘·2 天前
Flutter 3.35 更新要点解析
flutter·ai编程·跨平台开发·客户端开发
tangweiguo030519872 天前
Flutter vs Android:页面生命周期对比详解
flutter
tangweiguo030519872 天前
Flutter网络请求实战:Retrofit+Dio完美解决方案
flutter