本机软件配置:xcode 12,flutter 1.17.2
- 问题 使用Android Studio 在iPhone上运行flutter项目,可以成功安装,但无法唤起,报错如下:
AttributeError: 'NoneType' object has no attribute 'modules'
Traceback (most recent call last):
File "/tmp/71352EC1-BEE8-4C32-9EDC-7D27213999CD/fruitstrap_2c4db4052f2a62369bfce67ba51c92f1688ee298.py", line 74, in safequit_command
process = lldb.target.process
AttributeError: 'NoneType' object has no attribute 'process'
- 解决
npm install ios-deploy@1.11.0-beta.1
用下面目录中的 ios-deploy
open /Users/ios/node_modules/ios-deploy/build/Release
覆盖下面目录中的ios-deploy
open /Users/ios/development/flutter/bin/cache/artifacts/ios-deploy/
这是我自己的目录,请根据自己的目录进行替换。