如何在 ionic-cli 版本 6 中跳过目标设备
我创建了一个使用平台Android和iOS的新离子电容器Angular项目。现在,当我像往常一样运行命令“离子盖”运行android -l -External'时,命令行请求目标设备(当我想运行iOS模拟器时,也会发生)。在我的旧项目(Ionic-CLI的旧版本)中,该命令首先打开Android-studio/ios,我可以在Android-Studio/ios中选择目标设备。
因此,我希望本机IDE像以前一样先打开,然后我可以选择一个设备或单击本机IDE中的“重建”。 我尝试了'离子盖运行android -l - external -target = false'false,但它不起作用。
I created a new ionic capacitor angular project with platforms android and ios. Now when I run the command 'ionic cap run android -l --external' as usual the command line asks for a target device (happens also when I want to run ios emulator). In my old project (older version of ionic-cli) the command does first open android-studio/ios and I can choose a target device in android-studio/ios.
So I want the native IDE to open first, like before, and then I can select a device or click on "rebuild" in the native IDE.
I tried 'ionic cap run android -l --external --target=false' false but it doesnt work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须使用
--open
标志:ionic cap run android -l --external --open
。You have to use the
--open
flag:ionic cap run android -l --external --open
.