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

Flutter问题:无法在iPhone Simulator安装Runner.app - Error 149

Flutter应用无法在iPhone Simulator启动:CoreSimulator.SimError 405错误

问题详情

使用flutter run命令在iPhone Simulator上运行Flutter应用时,出现安装失败错误,具体日志如下:

Unable to install /Users/enkh-amgalan/Desktop/lesson/mobile/week-1/add_sub_app/build/ios/iphonesimulator/Runner.app on 524B6B86-9413-48BF-9408-288F75BDC9F4.
This is sometimes caused by a malformed plist file:
ProcessException: Process exited abnormally with exit code 149:
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405):
Failed to find service com.apple.CoreSimulator.host_support in session com.apple.CoreSimulator.SimDevice.524B6B86-9413-48BF-9408-288F75BDC9F4
Underlying error (domain=NSPOSIXErrorDomain, code=3):
The operation couldn’t be completed. No such process
No such process
Command: /usr/bin/arch -arm64e xcrun simctl install 524B6B86-9413-48BF-9408-288F75BDC9F4
/Users/enkh-amgalan/Desktop/lesson/mobile/week-1/add_sub_app/build/ios/iphonesimulator/Runner.app
Error launching application on iPhone 15 Pro.

解决步骤

  • 重启CoreSimulator服务与模拟器

    1. 关闭所有运行的iPhone Simulator窗口
    2. 终端执行命令强制重启CoreSimulator服务:
      killall -9 com.apple.CoreSimulator.CoreSimulatorService
      
    3. 重新打开模拟器,执行flutter run重试
  • 重置模拟器数据

    1. 在模拟器顶部菜单选择Device → Erase All Content and Settings...,确认重置
    2. 清理项目缓存后重新构建:
      flutter clean
      flutter pub get
      flutter run
      
  • 检查Xcode与环境配置

    1. 确保Xcode为最新稳定版,打开Xcode设置→Locations,确认Command Line Tools已选中当前Xcode版本
    2. 执行flutter doctor检查Flutter环境是否存在异常,修复提示的问题
  • 验证Info.plist文件

    1. 打开项目路径ios/Runner/Info.plist
    2. 检查文件是否存在语法错误,确认CFBundleIdentifier、CFBundleName等必填字段完整且格式正确

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.27 01:35:20