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

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


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.


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.


I think @Tom Harrington is right, xib file was corrupted, So

  1. I cancelled the last pull.
  2. Made the changes by my self in XIB.
  3. Take a copy from that XIB.
  4. git pull
  5. Delete the XIB in Xcode ( which was corrupted ).
  6. Added the external copy from modified XIB file.

Then every thing works great.Thanks guys :)