VSCode运行flutter时检测不到iOS模拟器

2025-07-14 04:25:24

1、首先,我们到应用程序->其他中找到终端并打开

VSCode运行flutter时检测不到iOS模拟器

2、在终端输入 flutter doctor,回车,等待命令执行完成

VSCode运行flutter时检测不到iOS模拟器

3、输入命令:sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer,回车后接着输入密码

VSCode运行flutter时检测不到iOS模拟器

4、输入命令:sudo xcodebuild -runFirstLaunch

VSCode运行flutter时检测不到iOS模拟器

5、安装cocoapods,输入命令:sudo gem install cocoapods

VSCode运行flutter时检测不到iOS模拟器

6、执行完后,打开iOS模拟器,在VSCode中就可以显示了

VSCode运行flutter时检测不到iOS模拟器
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢