Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve xib file's merge conflict?

Our project use svn to manage source version. We have a problem that when a xib is modified by 2 person, it will almost conflict after merging. I've open the confilct file using vim, the information is not readable and I don't know how to solve the merge conflict.

Has anyone met this problem before? How to solve it?

Thanks in advance.

like image 970
tangqiaoboy Avatar asked Apr 07 '12 15:04

tangqiaoboy


People also ask

How do you resolve conflicts of Xib files?

The xib is xml file. You can open it with TextEdit. app and search for "<<<" You will see two blocks, mine and the revision from svn. If it's not possible you would revert your code, update and redo the work.

How do I resolve main storyboard conflict?

Developers should evaluate if they actually made a change to a storyboard, and only include it in the commit if they did. If a merge conflict of this type is encountered, the simplest approach is to review the conflicts, and if they are minor layout adjustments, select the newest change to resolve the conflict.


1 Answers

I would first check if it's possible to manually merge it. The xib is xml file. You can open it with TextEdit.app and search for "<<<" You will see two blocks, mine and the revision from svn.

If it's not possible you would revert your code, update and redo the work. And there are a few other ways to resolve it. How to merge conflicts (file project.pbxproj) in Xcode use svn?

like image 92
user866650 Avatar answered Sep 28 '22 11:09

user866650