iOS模拟器是虚拟机还是仿真器?
The iOS Simulator is a Virtual Machine or a Emulator?
用Xcode安装的iOS模拟器是虚拟机还是像Android那样的模拟器?
它既不是虚拟机也不是模拟器。它是一个模拟器,换句话说,它是一个标准的 mac 应用程序,可以模仿 iOS 设备的行为。它模仿了实际设备的大部分功能,但缺少一些主要功能。所以你需要使用真实的设备来测试一些真实世界的场景。
您可以在此处阅读有关模拟器的更多信息:About Simulator
我想引用上面链接页面的一些关键信息:
什么是模拟器
Simulator allows you to rapidly prototype and test builds of your app
during the development process. Installed as part of the Xcode tools,
Simulator runs on your Mac and behaves like a standard Mac app while
simulating an iPhone, iPad, Apple Watch, or Apple TV environment.
Think of the simulator as a preliminary testing tool to use before
testing your app on an actual device.
需要实际设备进行测试
Simulator is a useful tool, but it should not be the only way you test
an app. Because the simulator is an app running on a Mac, it has
access to the computer’s resources, including the CPU, memory, and
network connection. All of these resources are likely to be faster
than those found on a mobile device. As a result, the simulator is not
an accurate test of an app’s performance, memory usage, and networking
speed. For this same reason, always test the performance of your app’s
user interface on a device. In Simulator, your app’s user interface
may appear to run both faster and smoother than on a device.
Also keep in mind that some user interface elements can be easier to
interact with in Simulator using a mouse than when trying to interact
with the app through touch on a device.
Finally, there are some hardware and API differences in Simulator.
These differences may affect your app when testing in Simulator.
用Xcode安装的iOS模拟器是虚拟机还是像Android那样的模拟器?
它既不是虚拟机也不是模拟器。它是一个模拟器,换句话说,它是一个标准的 mac 应用程序,可以模仿 iOS 设备的行为。它模仿了实际设备的大部分功能,但缺少一些主要功能。所以你需要使用真实的设备来测试一些真实世界的场景。
您可以在此处阅读有关模拟器的更多信息:About Simulator
我想引用上面链接页面的一些关键信息:
什么是模拟器
Simulator allows you to rapidly prototype and test builds of your app during the development process. Installed as part of the Xcode tools, Simulator runs on your Mac and behaves like a standard Mac app while simulating an iPhone, iPad, Apple Watch, or Apple TV environment. Think of the simulator as a preliminary testing tool to use before testing your app on an actual device.
需要实际设备进行测试
Simulator is a useful tool, but it should not be the only way you test an app. Because the simulator is an app running on a Mac, it has access to the computer’s resources, including the CPU, memory, and network connection. All of these resources are likely to be faster than those found on a mobile device. As a result, the simulator is not an accurate test of an app’s performance, memory usage, and networking speed. For this same reason, always test the performance of your app’s user interface on a device. In Simulator, your app’s user interface may appear to run both faster and smoother than on a device.
Also keep in mind that some user interface elements can be easier to interact with in Simulator using a mouse than when trying to interact with the app through touch on a device.
Finally, there are some hardware and API differences in Simulator. These differences may affect your app when testing in Simulator.