打开模拟器命令:open -a Simulator
当真机也连着电脑时会出现以下命令:
More than one device connected; please specify a device with the '-d <deviceId>' flag, oruse '-d all' to act on all devices.
“xx”的 iPhone • ebde052af5111ac5ff3b41dasdasdasdadd6cbfedc • ios • iOS 12.0.1
iPhone Xs Max • 6F2F0D31-9EDF-43EF-AC8D-558FC52D9EC4 • ios • iOS 12.1 (simulator)
此时如果你要选择模拟器运行你应该输入如下命令:
flutter run -d 6F2F0D31-9EDF-43EF-AC8D-558FC52D9EC4
网友评论