开发者

xcode 4 list of files with target

开发者 https://www.devze.com 2023-02-20 02:38 出处:网络
In Xcode 3 it was easy to get an overview of which files are activated for current active target. I love the new feature in Xcode 4 where you can see all the targets a specific file is active for (its

In Xcode 3 it was easy to get an overview of which files are activated for current active target. I love the new feature in Xcode 4 where you can see all the targets a specific file is active for (its like an inversed view of xcode 3). Is there some mysterious way of getting that good ol' view back?

It would be really handy when specifying test-files and nibs for different targets...

Image from that good ol' list in xcode 3:

开发者_开发技巧

xcode 4 list of files with target


Expanding on tomwhipple's answer, there is a way to see all the files that are not part of a target.

Go to -> Build Phases -> Compile Sources and hit the '+' button. This will show you all the files that are not part of the target. However, this list is pretty cluttered with things that really shouldn't be in your target. But you can type ".m" in the search bar to only show the classes that aren't included.

xcode 4 list of files with target


By Target: Navigate to the project, then select the target and expand the various build phases. It's more specific because it shows you what role the file(s) play in the target.

By file: Select the file in the navigator and open the Utility pane. The targets list is shown there (but only for that one file).


I also find this lack of a checkmark list annoying. I did notice that you can add multiple files to a target via the + icon at the bottom of the compile sources list in the "by target" method.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号