0

In working on an iPhone application, what is a good method for working with multiple developers? I have run into several git conflict from simultaneous modifications to the Storyboard file. Is there a good method around this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
David542
  • 104,438
  • 178
  • 489
  • 842
  • Are you using xcode 6? – eliot Dec 30 '14 at 18:30
  • Yes, we are using xcode 6 – David542 Dec 30 '14 at 18:31
  • 1
    If you are still having issues, try splitting up your storyboard into multiple storyboards in a way that makes sense. For example, if you have a menu with 5 different items, can you make a storyboard for each one that contains only the nibs for items inside that menu item? – eliot Dec 30 '14 at 18:35

1 Answers1

2

The storyboard files are stored as XML so you're going to run into the same types of issues that XML files have when tracked with git.

Check out this answer for more technical info on using git attributes and custom merge drivers

Storyboard XML is not that hard to read from a human perspective (compared to old XIB files) so if the changes are small and not on the same object it can be trivial to use the merge tool in Xcode to resolve conflicts.

To avoid the conflicting situations as much as possible you could set up your project to use multiple storyboard files to split things up and minimize the chances for conflicting changes to a single large storyboard. Use +storyboardWithName:bundle: to load the storyboards when needed.

Community
  • 1
  • 1
user3841460
  • 205
  • 1
  • 8