欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 维修 > Flutter求助贴

Flutter求助贴

2025/4/3 15:45:36 来源:https://blog.csdn.net/qq_36083418/article/details/146958160  浏览:    关键词: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...

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词