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?
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.
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.
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.
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”.
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!
Your generally ok if you exclude the build folder in your xcode project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With