Couldn't open xib file after git pull, invalid element name

Abo3atef picture Abo3atef · Feb 17, 2014 · Viewed 18k times · Source

I am working on project with another developer. We are working on bitbucket.

The problem is he made a changes in XIB files. After that when I do a git pull, I receive the changes but get an error on XIB files. When I tried to open it, a show alert message saying could not opened

Line 81 startTag: invalid element name.

Screenshot added

Thanks :)

Answer

tokyovariable picture tokyovariable · Feb 2, 2015

Glad you corrected the issue. I recently ran into the same issue. It a merge conflict and that is why Xcode is throwing that error. Within the .xib file you will see something like:

<<<<<<< HEAD

// code

=======

// code

>>>>>>> apps

You can do what you did above, or manually correct the merge conflict issues by opening the .xib file in a text editor. After correcting it the file should open fine in Xcode.