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服务与模拟器
- 关闭所有运行的iPhone Simulator窗口
- 终端执行命令强制重启CoreSimulator服务:
killall -9 com.apple.CoreSimulator.CoreSimulatorService - 重新打开模拟器,执行
flutter run重试
重置模拟器数据
- 在模拟器顶部菜单选择
Device→Erase All Content and Settings...,确认重置 - 清理项目缓存后重新构建:
flutter clean flutter pub get flutter run
- 在模拟器顶部菜单选择
检查Xcode与环境配置
- 确保Xcode为最新稳定版,打开Xcode设置→
Locations,确认Command Line Tools已选中当前Xcode版本 - 执行
flutter doctor检查Flutter环境是否存在异常,修复提示的问题
- 确保Xcode为最新稳定版,打开Xcode设置→
验证Info.plist文件
- 打开项目路径
ios/Runner/Info.plist - 检查文件是否存在语法错误,确认
CFBundleIdentifier、CFBundleName等必填字段完整且格式正确
- 打开项目路径
内容的提问来源于stack exchange,提问作者Enkhee
相关产品推荐
相关产品推荐

