如何实时查看设备上的应用程序变化? [英] How to see the app changes on a device in real time?

查看:13
本文介绍了如何实时查看设备上的应用程序变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我更改代码时,即使只有一行我都必须运行命令

Every time I change a code even it's only one line I have to run the command

sudo ionic cordova prepare ios 

我必须单击 Xcode 上的播放按钮才能在 iPhone 上上传应用程序并查看实际更改.

and I have to click play button on Xcode to unable to upload the app on the iPhone and see the changes in action.

基本上每次我想测试应用程序时,我都会重复这些步骤,每次大约需要 4 分钟来查看我编写的这行代码是否有效.有没有办法实时看到这种变化?

Basically every time I want to test the app, I am repeating this steps and each time it takes approximately 4 minutes to see if this single line of code I wrote is working or not. Is there a way to see this changes in real time?

如果我跑了

sudo ionic serve

如果我进行更改,更改会实时显示在浏览器上,但我需要在 iPhone 上测试相机和返回键,因此浏览器对我不起作用.例如,我可以使用tab 键"在输入之间切换,但不能使用return 键"在输入之间切换.

and if I make a change the changes are appear on the browser real time but I need to test the camera and the return key on the iPhone so browser doesn't work for me. For instance I can switch between the inputs with the "tab key" but I cannot switch between the inputs with the "return key".

有没有办法实时查看变化?这样可以节省我很多时间.

Is there a way to see the changes in real time? That would save me a lot of time.

推荐答案

有没有办法实时查看变化?

Is there a way to see the changes in real time?

是的,有!答案是 Ionic DevApp

Yes, there is! The answer is Ionic DevApp

Ionic DevApp 是一款免费的应用程序,它可以轻松运行您的 Ionic应用直接在您的 iOS 或 Android 设备上.

The Ionic DevApp is a free app that makes it easy to run your Ionic app directly on your iOS or Android device.

跳过处理令人沮丧的 Native SDK 安装问题,直接运行ionic serve -c,打开DevApp,连接到同一个网络,然后应用程序将自动加载并运行您的应用程序.

Skip dealing with frustrating Native SDK installation issues, just run ionic serve -c, open the DevApp, connect to the same network, and the app will automatically load and run your app.

DevApp 带有许多内置的原生插件,因此您无需需要担心安装插件.

The DevApp comes with many native plugins built right in, so you don’t need to worry about installing plugins.

您可以查看支持的 Cordova 插件列表这里.

You can check the list of supported Cordova plugins here.

这篇关于如何实时查看设备上的应用程序变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆