問題描述
iPhone模擬器和Android模擬器有什么區別?我聽說有人說 Emulator 真正模擬了目標設備,但在模擬器的情況下并非如此.
What is the difference between iPhone Simulator and Android emulator? I have heard people saying that Emulator really emulates the target device which is not true in case of simulator.
我認為 Android 模擬器會模仿目標設備的處理速度、內存使用情況,但模擬器不會模擬設備.
I think Android emulator mimics the processing speed of the target device, the memory usage, but a simulator does not emulate the device.
推薦答案
免責聲明:我只是 iPhone 開發者,不是 Android 開發者.
Disclaimer: I'm only an iPhone developer, not an Android developer.
你是對的,模擬器和模擬器的區別在于模擬器模仿了實際設備上的軟件和硬件環境.另一方面,模擬器只模擬軟件環境;否則,他們可以訪問主機系統的所有硬件資源,例如磁盤空間、內存和處理器速度.
You are correct, the difference between emulators and simulators is that emulators mimic the software and hardware environments found on actual devices. Simulators, on the other hand, only mimic the software environment; they otherwise have access to all of the host system's hardware resources such as disk space, memory and processor speed.
Apple 一直強調設備測試的重要性,因為 iPhone Simulator 不模擬 iPhone 處理器、磁盤驅動器、內存限制等等.除非您的 Mac 正在努力管理資源本身,否則您幾乎不會收到內存警告,除非您從模擬器的菜單項中(再次)模擬內存警告.
Apple always harps on the importance of device testing because iPhone Simulator does not emulate an iPhone processor, disk drive, memory constraints and whatnot. You hardly ever get memory warnings unless your Mac is struggling to manage resources itself, unless you simulate (again) memory warnings from the Simulator's menu item.
事實上,如果你去設置>通用>關于,你會看到模擬器的磁盤容量和它所安裝的Mac的文件系統是一樣的:
In fact, if you go to Settings > General > About, you'll see that the Simulator's disk capacity is the same as the filesystem of the Mac it's installed on:
這篇關于iPhone模擬器和Android模擬器之間的區別的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!