Xcode 4.5 iOS 5: Could not open document "xxx.xib". The operation could not be completed.

I get this error in Xcode 4.5 on iOS 5 simulator.

The document "xxx.xib" could not be opened. The operation could not be completed. Two members of the document have an object identifier of 17. This could have happened through external editing, such as the SCM merge operation.

Any idea on how to solve it?

Thanks Pradeep

+7
source share
2 answers

You can open the .xib file with a text editor (e.g. BBEdit or TextWrangler) and change the number manually.

  • Open the XIB file in a text editor.

  • Search for "> 17" without quotes.

  • Replace it with more (don't worry, its temporary). This will eliminate the conflict.

  • Now save the file and open it in the Xcode interface builder. Xcode should notify you that a problem has occurred with the file and that it automatically fixed the problem. The file should now open normally.

If for some reason the problem continues, try using a different number in step 3.

+19
source

I was able to solve this problem

  • Open the XIB file in a text editor - I used TextWrangler
  • Search for "> 17" without quotes
  • Replace it with more
  • Now save the file and open it in the XCOde Interface builder
  • If the error continues with a different value, repeat step 2 - step 4 until the creator of the xcode interface opens the xib file.
  • Xcode will restore the file and it will work again.

Thanks Pradeep

+3
source

All Articles