简体   繁体   English

在模拟器,设备和应用商店上进行行为测试有什么区别

[英]What is the difference in behaviour testing on the simulator, device and app store

I am trying to figure out what the differences is testing on different layers in regards to accessing the main bundle, documents directory etc. 我试图弄清楚在访问主包,文档目录等方面在不同层上进行测试的区别。

I know that when testing on the simulator it creates a copy of the execution environment which is separate from xcode. 我知道在模拟器上进行测试时,它会创建执行环境的副本,该副本与xcode分开。 What about on the device and on app store and what is the difference? 在设备和应用程序商店上有什么区别?

The simulator is there as a quick guide. 模拟器是作为快速指南。 It shouldn't be relied on as the only method of testing. 不应将其作为唯一的测试方法。 There are differences between the simulator and device (simulator is not case sensitive, for example) and the simulator can't provide all functions as the device (compass, camera for example) 模拟器和设备之间存在差异(例如,模拟器不区分大小写),并且模拟器无法提供设备的所有功能(例如,指南针,照相机)

There should be no difference between how your code accesses documents directory, etc between the two. 两者之间的代码访问文档目录等的方式应该没有区别。 As long as you code the correct way (for example, case sensitively), your code should work on both. 只要您以正确的方式编写代码(例如,区分大小写),您的代码就应该同时适用于这两种方法。

When you release to the AppStore, there should be no difference to what you were running on your device. 当您发布到AppStore时,应该与设备上运行的内容没有区别。 It is just bundled up and signed with the appropriate certificates. 它只是捆绑在一起并用适当的证书签名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM