如何在 ionic-cli 版本 6 中跳过目标设备

发布于 2025-01-17 10:15:39 字数 315 浏览 2 评论 0原文

我创建了一个使用平台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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仙女山的月亮 2025-01-24 10:15:39

您必须使用 --open 标志:ionic cap run android -l --external --open

You have to use the --open flag: ionic cap run android -l --external --open.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文