xcode 将目标从“iOS 设备”更改为模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16120719/
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 03:15:25  来源:igfitidea点击:

xcode change target from 'iOS device' to the simulator

iphoneiosxcode

提问by Ihmahr

I had a project in xcode and didn't touch it for a month (and forgot how it works).

我在 xcode 中有一个项目,一个月没有碰它(忘记了它是如何工作的)。

Now I want to change the target from 'iOS device' to the simulator.

现在我想将目标从“iOS 设备”更改为模拟器。

I can not for the life of me figure out how I should do this in xcode 4.5.2

我一生都无法弄清楚我应该如何在 xcode 4.5.2 中做到这一点

-- EDIT FOR CLARITY --

-- 编辑清晰 --

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

回答by zshcbka

Check if you have any simulator installed in your X-Code. (Xcode->Preferences -> Downloads -> Components )

检查您的 X-Code 中是否安装了任何模拟器。(Xcode->首选项->下载->组件)

回答by Rui Peres

Like this:

像这样:

enter image description here

在此处输入图片说明

Top left corner in Xcode: Set Active scheme.

Xcode 左上角:设置活动方案。