Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 :)

like image 970
Abo3atef Avatar asked Feb 17 '14 00:02

Abo3atef


2 Answers

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.

like image 160
tokyovariable Avatar answered Sep 21 '22 05:09

tokyovariable


All you have to do is find the <<<<<<< HEAD lines and delete them. Compiled on my first try. For some reason they are inserted into the .xib file when you have a merge conflict.

like image 22
Nathan Singer Avatar answered Sep 20 '22 05:09

Nathan Singer