Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Rafael Conde
Rafael Conde
8,127 Points

Xcode with teams

Howdy fellow coders,

Recently I started this project with a small team and I wanted to know if any of you have any experience working on a Xcode project with a team, and how do you deal with the conflicts, specially Storyboard.

I found that a lot of people minimize the damages by splitting their work through multiple Storyboards, but I'm finding it difficult to transition between them, because in my case I have a consistent navbar throughout the entire app.

Can you guys share some tips? ;)

2 Answers

Mike Bronner
Mike Bronner
16,395 Points

I haven't done this type of thing yet, but have you looked into the new Xcode Server? It provides a GIT functionality, so you can fork work and merge in a team, as well as provides automated bots that provide continual integration for you.

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/xcode_guide-continuous_integration/000-About_Continuous_Integration/about_continuous_integration.html#//apple_ref/doc/uid/TP40013292-CH1-SW1

Rafael Conde
Rafael Conde
8,127 Points

Yes, I'm using Xcode's built in Version Control hosted in Github.

Holger Liesegang
Holger Liesegang
50,595 Points

Hi Rafael, I'm afraid you don't want to hear that but better don't use Storyboards with teams. You can get some info in this regard from the Big Nerd Ranch / "iOS Programming: The Big Nerd Ranch Guide" by Joe Conway and Aaron Hillegass. For example at page 435 it says:

"Storyboards are difficult to work with in a team. Typically, a team of iOS programmers breaks up the work by having each member focus on a particular view controller. With a storyboard, everyone has to do their work in the same storyboard file. This can quickly lead to clutter."

and

"Storyboards screw up version control. If two people are working on the storyboard at the same time - which happens every day in a team environment - your version control system, like Subversion, will find conflicts that you must resolve manually."

Kind Regards Holger

Rafael Conde
Rafael Conde
8,127 Points

That's why I tried using multiple storyboards, but still, even if another person just opens a .storyboard file it changes the XML. It's a big mess.