在真实设备和模拟器上测试iOS测试 [英] Testing iOS testing on real devices vs. Simulator

查看:108
本文介绍了在真实设备和模拟器上测试iOS测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是iPhone / iPad开发的新手,我即将完成我的第一个应用程序,我正在寻找一些一般建议。

I am new to iPhone/iPad development and I am close to finishing up my first app and I am looking for some general advice.

我知道这很重要测试实际设备而不仅仅是模拟器。人们在交易设备上测试他们在模拟器中看不到的东西通常会遇到什么类型?

I know it is important to test on actual devices and not just the simulator. What are the types of things people generally encounter when testing on a deal device that they don't see in the simulator?

该应用程序本身主要是一种在线跟踪方式交易和那种类型的东西。在使用相机或GPS之类的东西时,它不需要任何特殊的东西。

The app itself is mainly a way to track online deals and that type of thing. It doesn't need anything special in term of using things like the camera or GPS.

推荐答案

这只是一般的使用测试。该设备在与您的计算机完全不同的环境中执行,这是确保您将应用程序推送到设备的最佳方式,不会发生任何意外情况。例如,手机/平板电脑可能具有有限的数据覆盖范围,低内存情况,来电等。这些情况在设备上更常见,然后人们通过模拟器模拟它。

It's just general usage testing. The device performs in an entirely different environment than your computer, and it's the best way to make sure if you push your app out to devices, that nothing unexpected will happen. For example, the phone/pad may have limited data coverage, low memory situations, incoming calls etc.. These situations are a lot more common on devices, then when people emulate it though the simulator.

从硬件的角度来看,该设备使用的处理器架构与Mac不同,这也需要考虑(不像其他情况那么多,但你需要覆盖你的基础)。 Mac也无法可靠地模拟RAM,磁盘空间,处理器速度等......因此在设备上进行测试也非常有用。

On a hardware point of view, the device uses a different processor architecture than your Mac, which also needs to be accounted for (not as much as other cases, but you need to cover your bases). The Mac also cannot reliably emulate RAM, Disc Space, Processor Speed etc...hence testing on the device is useful here also.

显然有一些功能你只能这样做在设备上进行测试,例如相机,GPS(而不是显而易见的iPod库使用),如果您的应用使用它们,则不小心不在设备上进行测试。

Obviously there are some features you can only test on devices, such as Camera, GPS (and not so obviously iPod library usage), and if your app uses them it'd be careless not to test on a device.

总体如果您打算将应用程序发布到App Store或至少发布到设备,则值得在设备上进行测试。只有这样,您才能确定它将在您打算定位的平台上按预期执行并执行。 模拟器毕竟只是一个模拟器,而不是真实的东西!

Overall if you're intending to release your application to the App Store, or to devices at least, it's worth testing on the device itself. Only then can you be sure that it will act and perform as expected on the platform you intend to target. The simulator is only a simulator after all, not the real thing!

这篇关于在真实设备和模拟器上测试iOS测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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