user392412
user392412

Reputation: 743

how git/svn handle project.pbxproj conflict?

When A and B change the project's structure at the same time,the project.pbxproj will conclict in git/svn. this file can't be treated as text file, how could I solve this conflict? Now, I have to override one's project.pbxproj and manually apply another's structure. Any sugguest? thx

Upvotes: 2

Views: 1138

Answers (3)

d0ngw
d0ngw

Reputation: 121

If you are using Git, just add a .gitattributes file and add one line:

*.pbxproj binary

This line will tell Git to treat all pbxproj files as binary data.

Upvotes: 0

Stephen Canon
Stephen Canon

Reputation: 106167

Just open the project file in your favorite text editor (even in Xcode). The project file structure isn't totally transparent, but it's actually quite human-editable, and in all but the most exceptional circumstances, the conflicts are generally very easy to resolve.

Upvotes: 1

Daniel Dickison
Daniel Dickison

Reputation: 21882

It can be treated as a text file. It's ugly, but you can usually figure out what the various lines of text in there are doing, and merge with some elbow grease.

Upvotes: 3

Related Questions