Merging Xcode project files

前端 未结 5 1361
故里飘歌
故里飘歌 2020-12-13 00:27

There are often conflicts in the Xcode project file (Project.xcodeproj/project.pbxproj) when merging branches (I\'m using git). Sometimes it\'s easy, but at times I end up w

5条回答
  •  难免孤独
    2020-12-13 00:53

    Another option to consider which may help to reduce the number of times you experience the problem. To explain, I'll call the branch that team members' branches come from the "develop" branch. Have a convention in your team that when the project file is modified, the changes (along with any other changes required to ensure the build integrity) are committed in a separate commit. That commit is then cherry picked onto the develop branch. Other team members who plan to modify the project file in their branch can then either cherry pick into their branch or rebase their branch on the latest develop. This approach requires communication across the team and some discipline. As I said, it won't always be possible; on some projects it might help a lot and on some projects it might not.

提交回复
热议问题