iOS - best practice for managing code merge in a storyboard

一个人想着一个人 提交于 2019-11-30 14:28:42

问题


Merging in a xcode storyboard with many team members can produce many conflicts etc. I need a strategy to share a storyboard with 20 team members but to avoid the nightmares associated with merging code in a storyboard.

I thought of having a separate target per team in xcode but this doesn't do well as we all need the updates so having two story boards is not good practice.

my code base is inherited. its a forked project that is storyboard heavy already. I think changing to xib might be difficult (??)


回答1:


Check out this tutorial which clearly suggests not using a storyboard while working on team.

But you can divide team into each module and use some versioning system as bitbucket or git to manage your code with the help of multiple storyboards(separate storyboard for separate module).

Careful day by day commit and pull will definitely resolve conflicts.




回答2:


Our team has found the majority of Michael Behan's method to work well. ⌘Boom

  • Everyone on the same build of Xcode
  • Multiple storyboards
  • Use Nibs for custom views
  • Think about which storyboards are involved when assigning tasks
  • Merge storyboards often


来源:https://stackoverflow.com/questions/29263725/ios-best-practice-for-managing-code-merge-in-a-storyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!