Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to list all files and their targets in Xcode?

I am part of a project with multiple developers. The project contains multiple targets. VERY often, files are committed to the Xcode project repository with some targets not-included (careless programmers). So whenever i do a 'svn up', and run the app, my program crashes. I then have to look through all those files and see which one was committed with the missing target, then add the target, and recommit the file to the repository (for that careless programmer)

Is there some way through a script to either automatically add all .m to a particular target? OR list all the files that are missing for a particular target?

I have looked at Add files to an XCode project from a script for reference already.

like image 687
Just a coder Avatar asked May 07 '12 18:05

Just a coder


People also ask

How do I see targets in Xcode?

When you create a new project from a template, Xcode adds one or more targets to the project automatically. For example, the multiplatform app template contains separate targets for an iOS app and Mac app. To view the targets in a project, select the project in the navigator area.

How do I search all files in Xcode?

Find text or patterns in your source code To find text in a file, open the file in the Xcode source editor and choose Find > Find from the menu bar. Xcode displays the Find bar and its search controls at the top of the file. Enter a search term. Xcode searches the file, highlights matches, and notes how many it finds.

What is the difference between project and target in Xcode?

An project is a repository for all the files, resources, and information required to build one or more software products. A target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace.

What is aggregate target Xcode?

An aggregated target is an Xcode target that lets you build a group of targets at once. It doesn't have any Products itself, like an app for an app target or a framework for framework targets. It doesn't have build rules either, but it can have a Run Script build phase or a Copy Files build phase only.


1 Answers

My answer on this other thread shows you how to see all files that are not part of a target:

https://stackoverflow.com/a/12867723/591586

like image 63
Nate Petersen Avatar answered Sep 30 '22 16:09

Nate Petersen