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...
相关推荐
哲科软件4 小时前
跨平台开发的抉择:Flutter vs 原生安卓(Kotlin)的优劣对比与选型建议
android·flutter·kotlin
天涯海风4 小时前
Kuikly 与 Flutter 的全面对比分析,结合技术架构、性能、开发体验等核心维度
flutter·kuikly
aiprtem4 小时前
基于Flutter的web登录设计
前端·flutter
coder_pig8 小时前
跟🤡杰哥一起学Flutter (三十四、玩转Flutter手势✋)
前端·flutter·harmonyos
程序员老刘10 小时前
Android 16开发者全解读
android·flutter·客户端
Jalor10 小时前
Flutter + 鸿蒙 | Flutter 跳转鸿蒙原生界面
flutter·harmonyos
吴Wu涛涛涛涛涛Tao13 小时前
一步到位:用 Very Good CLI × Bloc × go_router 打好 Flutter 工程地基
flutter·ios
九丝城主13 小时前
2025使用VM虚拟机安装配置Macos苹果系统下Flutter开发环境保姆级教程--中篇
服务器·flutter·macos·vmware
ITfeib13 小时前
Flutter
开发语言·javascript·flutter
昱禹14 小时前
Flutter 3.29+使用isar构建失败
大数据·flutter