美文网首页Flutter开发圈
flutter VSCode 模拟器/真机选择

flutter VSCode 模拟器/真机选择

作者: 3c32f188d5a4 | 来源:发表于2018-12-23 21:21 被阅读465次

打开模拟器命令: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 

相关文章

网友评论

    本文标题:flutter VSCode 模拟器/真机选择

    本文链接:https://www.haomeiwen.com/subject/trblcttx.html