Ignoring Files That Are Already in a Git Repository

March 5th, 2018

Filed under: Version Control, Xcode | Be the first to comment!

In a previous post, I showed how to tell git to ignore files in Xcode projects. But what do you do if you want to ignore a file that git is currently tracking? Remove the file from the git repository. Add the file you want to ignore to the git ignore file. If you don’t […]


Telling Git to Ignore Files in Xcode Projects

February 28th, 2018

Filed under: Version Control, Xcode | Be the first to comment!

When you create a project in Xcode and create a git repository, git initially tracks every file in the project, but this behavior isn’t what you want. Xcode projects contain a lot of files. Some of these files shouldn’t be tracked by git because they change every time you build your project. Having files you […]


Xcode 9: Adding Your Project to GitHub

February 21st, 2018

Filed under: Version Control, Xcode | Be the first to comment!

Before Xcode 9, setting up your project to work on GitHub involved a lot of work. You had to login to GitHub, create a repository, go back to your Mac, launch the Terminal application, navigate to your project directory, and run multiple git commands. Xcode 9 makes working with GitHub much easier. You can add […]


Creating a Git Repository for an Existing Xcode Project

February 12th, 2018

Filed under: Version Control, Xcode | Be the first to comment!

When you create a new Xcode project, Xcode gives you the option to create a git repository on your Mac. How do you create a git repository for a project after the project has been created? Choose Source Control > Create Git Repositories. A sheet opens. Click the Create button and Xcode will create a […]


Using agvtool to Update Version and Build Numbers

February 5th, 2018

Filed under: Xcode | Be the first to comment!

Apple bundles a command-line tool with Xcode, agvtool, to automatically update your project’s version and build numbers. This article shows you how to use agvtool in your Xcode projects. Enabling agvtool in Your Project Before you can use agvtool, you must tell Xcode to use it for your project. To enable agvtool, change the following […]