一、IPhone真机运行,提示无法打开“iproxy”,因为无法验证开发者
方法一
方法二
打开 ios下的Runner.xcworkspace,编译一下,就会在方法一的相同目录下生成iproxy文件,接着运行就行了
二、VSCode左下角找不到模拟器和真机
可以运行flutter doctor,看看xcode那块是不是报错,我的是这样
[!] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
Download at: https://developer.apple.com/xcode/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
我终端跑一下sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
,重启VSCode就可以选择设备了