打開模擬器命令:open -a Simulator
當(dāng)真機(jī)也連著電腦時(shí)會出現(xiàn)以下命令:
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)
此時(shí)如果你要選擇模擬器運(yùn)行你應(yīng)該輸入如下命令:
flutter run -d ?6F2F0D31-9EDF-43EF-AC8D-558FC52D9EC4?