在 iOS 模拟器上测试

如果您没有 iOS 设备或不想创建账户,您可以在模拟器上测试应用程序,模拟器是作为 Xcode 的一部分安装的。每个 Xcode 版本都会模拟一组预定义的硬件设备和软件版本。

您可以在项目的运行设置中更改模拟的硬件和软件版本。转到Projects >Run ,然后在Device type 字段中选择要模拟的设备。

iOS 模拟器的部署设置

运行应用程序时,模拟器会自动启动。要手动启动模拟器,可直接使用 Spotlight 启动模拟器应用程序,或转到 Xcode 中的Xcode >Open Developer Tool

在 Xcode 中管理可用的模拟器设备。

另请参阅 " 如何:为 iOS 开发 "和 "为 iOS 开发"。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.