Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What OSX/XCode version control system should I use for iPhone development?

I've been developing my first iPhone app part-time and would like to start using a more rigorous form of version control than I've been using over the past four months, i.e. copying source code folders to another directory and time stamping them.

I've used SourceSafe and Team Foundation System but I don't have a good idea of what version control systems (VCS) are available for the Macintosh. I've seen ads on SO for a Subversion front end but would like some other options.

Here's a list of my initial requirements:

  • Runs locally under OS X Leopard 10.5.7
  • Integrates with XCode 3.1.3 (if no integration, user-friendly interface)
  • Basic VCS features - check-in comments, branching, pinning
  • Advanced VCS features like build automation or reports would be nice but not critical at this time
  • Ability to handle multiple developers down the road (6-12 months)

Thanks in advance for the help.

like image 601
billmaya Avatar asked Sep 04 '09 10:09

billmaya


People also ask

What macOS do you need for Xcode 13?

Xcode 13 requires a Mac running macOS 11.3 or later.

What version of Xcode do I need for iOS 15?

iOS and iPadOS apps submitted to the App Store must be built with Xcode 13 and the iOS 15 SDK. And watchOS apps submitted to the App Store must be built with Xcode 13 and the watchOS 8 SDK.

What version of iOS does Xcode support?

Overview. Xcode 11 is available in the Mac App Store and includes SDKs for iOS 13, macOS Catalina 10.15, watchOS 6, and tvOS 13. Xcode 11 supports development for devices running iOS 13.1. Xcode 11 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later.

Does Xcode 13 support iOS 14?

Apps built with Xcode 13 will continue to support older versions of Apple software, such as iOS 14 and macOS Big Sur. “Make the most of the exciting features in iOS 15, iPadOS 15, and watchOS 8 to offer even more intuitive and valuable user experiences.


2 Answers

Mercurial would be my pick for version control for a project starting as a solo project if you don't want to set up a dedicated server. Mercurial requires no server because it's a distributed VCS, every working copy is also a complete repository, so once you've installed Mercurial you are ready to go, just type 'hg init' in the root directory of your project and you're off.

It's perfect for working alone or with a small number of developers (i.e. no IT staff or sysadmins available), it has a utility that lets you quickly set up a temporary server for your local repository so when you meet up with people it's easy for them to clone the repository or share changes. You can also just give people copies of your repository over email or USB key or copy them over the network or whatever and reconcile changes to the copies against each other later.

For me Mercurial made the difference between actually using a VCS for personal projects and just giving up because it's too much trouble. Setting up a Subversion server locally isn't a huge deal but it's still enough trouble to make me not bother, and if you really want to be thorough you'd want to think about how to do proper backups, etc. With Mercurial at any point you can just back up your working copy to other media and you have a backup. I don't know if this really makes sense but Mercurial is a VCS that you can use casually and informally thanks to the distributed nature.

No Xcode integration, but having used various VCS' with and without integration I don't think it's very important as long as good clients are available. These days I've mostly settled on just going command line and it's refreshing.

Perforce, IMO, is right out. Aside from being a commercial product it is obnoxious beyond belief. It requires you to be connected to a server at all times or things become a major pain in the ass. So if you just want to work on stuff from multiple machines in multiple locations or if you want to have people on the project that won't be on the same network all the time it's going to suck. Perforce just constantly beats you over the head with the fact you are using Perforce, no other VCS I've used is so in your face and annoying.

Git is another option with a similar feature set to Mercurial that might be worth looking at. In my case I also do Windows stuff and Git's Windows support is supposedly crap so I went with something that works on all my platforms.

Build automation IMO is the build server's job, not the VCS' job, so if you want build automation find an appropriate build server.

like image 194
Whatever Avatar answered Oct 19 '22 22:10

Whatever


SVN or Subversion is included with Xcode and is well integrated with it. As you grow to have bigger needs, you can use third-party Subversion servers and use the same SVN support over the network. If you don't like SVN, I think XCode supports CVS too.

If you're looking for something adequate, cheap, and expandable, then just mosey on over to the SCM menu of XCode, and check out what's already there. If you need help setting up SVN, just comment.

like image 22
mahboudz Avatar answered Oct 19 '22 22:10

mahboudz