You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter iOS模拟器启动失败报错:_flutter.listViews: (-32000) Service connection disposed

解决Flutter iOS模拟器启动报错"_flutter.listViews: (-32000) Service connection disposed"
  • 清理Flutter缓存与构建文件
    依次执行以下命令:

    flutter clean
    rm -rf ios/Pods ios/Podfile.lock
    flutter pub get
    
  • 重置iOS模拟器
    打开iOS模拟器,点击顶部菜单栏Hardware -> Erase All Content and Settings,等待重置完成后关闭模拟器,重新启动。

  • 维护CocoaPods环境
    检查当前CocoaPods版本:pod --version,如果版本较老,执行sudo gem install cocoapods更新;之后进入项目的ios目录,执行pod install。

  • 校验Flutter环境完整性
    运行flutter doctor,确认所有iOS相关检查项均显示绿色对勾,若有缺失组件,按照提示完成安装(比如Xcode命令行工具、iOS模拟器组件等)。

  • 排查项目自身问题
    新建一个空白Flutter项目:flutter create test_app,在iOS模拟器中运行测试。如果空白项目能正常启动,说明原项目存在配置或代码异常,可逐步迁移代码定位问题点。

内容的提问来源于stack exchange,提问作者Anroche

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.18 23:20:53