Where are my targets in Xcode 4?

走远了吗. 提交于 2019-12-24 07:29:54

问题


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"?


回答1:


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.




回答2:


Click the button as below images




回答3:


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




回答4:


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.

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




回答5:


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.



来源:https://stackoverflow.com/questions/6141657/where-are-my-targets-in-xcode-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!