我在 Xcode 4 中的目标在哪里?

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

Where are my targets in Xcode 4?

xcodexcode4target

提问by nevan king

In Xcode 3, I had a list of targets in the left column. They're not there anymore. There's a list in the Scheme pull-down, but I can't find them anywhere else. Have they changed name to "Schemes"?

在 Xcode 3 中,我在左栏中有一个目标列表。他们已经不在了。Scheme 下拉菜单中有一个列表,但我在其他任何地方都找不到它们。他们是否已将名称更改为“计划”?

回答by Marc Charbonneau

Targets are still there. Click on the project (the very first object in the tree) in the project navigator and you'll get a view with project settings on the right and targets on the left.

目标还在。单击项目导航器中的项目(树中的第一个对象),您将看到右侧的项目设置和左侧的目标视图。

回答by Bashirpour

Click the button as below images

点击按钮如下图

enter image description here

在此处输入图片说明

回答by Abizern

Click on the top level item in the left hand project view - it will show you the project and the targets in the main pane - along with their configurations

单击左侧项目视图中的顶级项目 - 它会在主窗格中显示项目和目标 - 以及它们的配置

回答by Abizern

No, targets and schemes are not the same thing. Your targets are still there: in the navigator in the left, click on the Project icon (it says "1 target, iOS SDK 4.3" or something similar underneath the usual .xcodeproject icon). THe main view now shows the project editor, where you can see and edit all your targets.

不,目标和计划不是一回事。您的目标仍然存在:在左侧的导航器中,单击“项目”图标(在通常的 .xcodeproject 图标下方显示“1 个目标,iOS SDK 4.3”或类似内容)。主视图现在显示项目编辑器,您可以在其中查看和编辑所有目标。

Schemes are basically ways to aggregate targets in useful ways when performing common actions like building and testing.

方案基本上是在执行构建和测试等常见操作时以有用的方式聚合目标的方法。

回答by taber

Yep, they are inside "Schemes" now. Each scheme can contain differing targets/build configurations.

是的,他们现在在“计划”中。每个方案可以包含不同的目标/构建配置。

If you click the dropdown and choose "Edit Scheme..." where your targets used to be in Xcode 3, then click "Run AppName..." or "Test" in the left side tree, under the "Info" tab you'll find the Build Configuration dropdown that contains Debug, Release, etc. in addition to the target Executable.

如果您单击下拉菜单并选择“编辑方案...”您的目标曾经在 Xcode 3 中的位置,然后单击左侧树中的“运行 AppName...”或“测试”,在“信息”选项卡下除了目标可执行文件之外,还会找到包含调试、发布等的构建配置下拉列表。