如何在 Xcode 9.2 和 iPhone XS max 中添加模拟器 iPhone XS

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/53631182/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:52:51  来源:igfitidea点击:

How to add simulator iPhone XS in Xcode 9.2 also iPhone XS max

xcodemacosoperating-systemios11xcode9.2

提问by sejn

I need to build my app in XS device. I am using Xcode 9.2. How can I add the XS modal in my Xcode externally.

我需要在 XS 设备中构建我的应用程序。我正在使用 Xcode 9.2。如何在我的 Xcode 中从外部添加 XS 模式。

In my simulator I have upto iPhone X.

在我的模拟器中,我最多有 iPhone X。

My machine Version:

OS X version: 10.12.6 (16G29)
Xcode version: 9.2

回答by Keithers

To get them, download Xcode 10.

要获取它们,请下载 Xcode 10。

https://developer.apple.com/download/

https://developer.apple.com/download/

(Or you can try) To add a simulator

(或者你可以尝试)添加一个模拟器

  1. Choose Hardware > Device > Manage Devices. Xcode opens the Devices window.

  2. At the bottom of the left column, click the Add button (+). In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu.

  3. Choose the OS version from the iOS Version pop-up menu.

  4. Alternatively, if the iOS version you want to use isn't in the iOS Version pop-up menu, choose “Download more simulators” and follow the steps to download a simulator.

  5. Click Create.

  1. 选择硬件 > 设备 > 管理设备。Xcode 打开设备窗口。

  2. 在左列的底部,单击添加按钮 (+)。在出现的对话框中,在模拟器名称文本字段中输入名称,然后从设备类型弹出菜单中选择设备。

  3. 从 iOS 版本弹出菜单中选择操作系统版本。

  4. 或者,如果您要使用的 iOS 版本不在 iOS 版本弹出菜单中,请选择“下载更多模拟器”并按照步骤下载模拟器。

  5. 单击创建。

回答by Luiz Dias

For those here with the same problem but for Xcode 10.xand need iOS 13 simulators(iPhone 11, for instance) do the following:

对于这里有相同问题但对于Xcode 10.x并且需要iOS 13 模拟器(例如 iPhone 11)的人,请执行以下操作:

  1. Install and open Xcode 11
  2. Go to Xcode menu> Open Developer Tool> Simulator
  3. On the Simulator app, go to Hardware menu> Device> iOS 13to select and run your desired device
  4. Now you can close Xcode 11, and open Xcode 10.x
  5. You should see your i.e iPhone 11 simulator available in the Device Listas the image:
  1. 安装并打开 Xcode 11
  2. 前往Xcode menu> Open Developer Tool>Simulator
  3. 在模拟器应用程序上,转到Hardware menu> Device>iOS 13以选择并运行所需的设备
  4. 现在您可以关闭Xcode 11,然后打开Xcode 10.x
  5. 您应该会在设备列表中看到可用的 ie iPhone 11 模拟器,如图所示:

enter image description here

在此处输入图片说明

回答by priyalp

For Simulator iPhone Xs 13.3is not available by default in simulators list, So we would have to create it.

因为模拟器iPhone Xs 13.3在模拟器列表中默认不可用,所以我们必须创建它。

Steps :-

脚步 :-

?Xcode Menu -> ?Open Developer Tool -> ?Simulator ->? Hardware -> ?Device -> ?Manage Devices -> ?Simulators -> ?Left Column -> ?Click on + to create your device -> ?Add Simulator Name (possibly iPhone Xs 13.3)…Device type to be iPhone Xs and OS Version iOS 13.3-> ?Create

?Xcode 菜单 -> ?Open Developer Tool -> ?Simulator ->? 硬件 -> ?Device -> ?Manage Devices -> ?Simulators -> ?Left Column -> ?单击 + 以创建您的设备 -> ?Add Simulator Name(可能iPhone Xs 13.3)...设备类型为 iPhone Xs 和操作系统版本iOS 13.3-> ?创建

Your New Device will be available in the list of Devices.

您的新设备将出现在设备列表中。

Similarly we can create other devices too.

同样,我们也可以创建其他设备。

[xcode]

[xcode]



回答by rafael maghari

Update 2020

2020 年更新

Open xcode simulator File > Open device > select your desired device.

打开 xcode 模拟器文件 > 打开设备 > 选择你想要的设备。

回答by kandari venkesh

In Xcode go to Window > Devices and Simulators Here click on the simulators and then click on '+' to add a desired device.

在 Xcode 中,转到 Window > Devices and Simulators Here 单击模拟器,然后单击“+”以添加所需的设备。

回答by Radhe Yadav

for that u need to upgrade your xcode version to xcode 10, thats not available for xcode 9.2

为此,您需要将 xcode 版本升级到 xcode 10,这不适用于 xcode 9.2

回答by Kathiresan Murugan

iPhone XS simulator is available on XCode 10 and above.

iPhone XS 模拟器可用于 XCode 10 及更高版本。

We can't able to create a iPhone XS simulator on below XCode 10But we can add

我们无法在下面创建 iPhone XS 模拟器XCode 10但我们可以添加

iOS 12.0 simulators in XCode 9.3

XCode 9.3 中的 iOS 12.0 模拟器