Android Studio运行Flutter iOS应用报错无法启动Runner.app如何解决?
Flutter iOS真机调试报错解决方案
问题场景
正常使用Xcode、Android Studio在iPhone上运行Flutter应用无异常,在同一设备安装App Store版本的同款应用后,再次通过Android Studio调试运行报错,卸载设备上的应用后重新运行仍报错。
初始报错信息
Launching lib/main.dart on iPhone in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: 59HZQ7G7DK Running Xcode build... Xcode build done.
29.2s Installing and launching... Could not run build/ios/iphoneos/Runner.app on 5bde4016fc......5f1439d5ef0. Try launching Xcode and selecting "Product > Run" to fix the problem: open ios/Runner.xcworkspace
Error launching application on iPhone.
Xcode运行报错截图:
无效排查操作
- 卸载iPhone上的同款应用后重新运行,问题依旧
- 删除本地存储的「iPhone Developer」和「Apple Worldwide Developer Relations Certification Authority」证书,运行触发新报错:
Command PhaseScriptExecution failed with a nonzero exit code
- 重新从Apple Developer官网下载官方开发证书,运行后回到初始报错,未解决问题
有效解决步骤
- 删除iPhone设备中所有和该应用相关的配置描述文件
- 重启iPhone设备
- 重新通过Android Studio或Xcode运行Flutter应用,即可正常启动
内容的提问来源于stack exchange,提问作者scott lee
相关产品推荐
相关产品推荐

