Today I have to fix a bugged program developed with Apple Xcode. Fixing broken code and replacing deprecated functions is a very energy consuming job and having a version control service can relieve the pain.
Luckily Apple Xcode can natively work with GIT but this feature is not simple to enable.
If you have a working installation of Xcode, you can:
- install the commad line tools for github (install the tools from the install wizard or from the preferences menu)
- install the Xcode Command Line Tools (under Xcode Preferences > Downlaods > Components)
- open the terminal app and go to your project folder
- run these 3 commands
git init git add . git commit -m "initial APP NAME commit"
- open Xcode, choose Xcode > Preferences, and select Source Control (enable all flags)
- restart Xcode and check under the Source Control menu the new options available
After these steps you have added an existing project to a source control repository. When you create a new project you can enable the source control during the create project setup wizard.