Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What files are generated by Xcode when compiling and linking?

Since I'm used to developing in Java, I'm familiar with what files get generated by the build process and can tell what files to exclude from SVN and HG when I do comits.

I'm just starting out learning some iOS app building using XCode. With XCode and Objective-C on a Mac, I don't know what files get generated. If there are files specific to the iOS development situation, I'd like to know those files as well.

What files, extensions or otherwise, should I add to a .hgignore file or svn:ignore to properly keep generated files out of my code repositories?

like image 274
Jay R. Avatar asked Aug 16 '10 15:08

Jay R.


People also ask

How does Xcode compile?

Xcode compiler takes the project source and forms a tree-like structure to define the dependencies of modules. It then goes compiling with a bottom-up approach i.e. compiling the modules with least dependencies first. In general, the Xcode project would have multiple dependencies on frameworks and other targets.

Where does Xcode place the files that created when it builds your project?

When you build a project, Xcode stores build files for that project in your derived data. You'll find your derived data folder in your macOS user library. To find your derived data folder, open a new Finder window.

What is an Xcode file?

An Xcode project is a repository for all the files, resources, and information required to build one or more software products. A project contains all the elements used to build your products and maintains the relationships between those elements. It contains one or more targets, which specify how to build products.

Where do I put Xcode files?

Xcode offers several ways to add existing files and folders to your project: Drag the files from the Finder into the Project navigator. Click the Add button (+) in the Project navigator's filter bar, and choose Add Files to “projectName”. Choose File > Add Files to “projectName”.


2 Answers

Here's the default .hgignore file that I copy into each Cocoa project I make.

syntax: glob
.DS_Store
build
.svn
(*)
*.pbxuser
*.perspectivev3
*.mpkg
*.framework
*.app

Hope this helps!

like image 119
RyanWilcox Avatar answered Oct 19 '22 12:10

RyanWilcox


Your generally ok if you exclude the build folder in your xcode project.

like image 28
ennuikiller Avatar answered Oct 19 '22 11:10

ennuikiller