Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4.5 iOS 5 simulator : The document "xxx.xib" could not be opened. The operation couldn’t be completed.

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

The document "xxx.xib" could not be opened. The operation couldn’t be completed. Two members of the document have the object ID 17. This may have happened through an external edit, such as an SCM merge operation.

Any idea on how to solve it ?

Thanks Pradeep

like image 960
Pradeep Chakravarti Gudipati Avatar asked Sep 20 '12 09:09

Pradeep Chakravarti Gudipati


2 Answers

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

  1. Open the XIB file in a plain text editor.

  2. Search for ">17" without the quotes.

  3. Replace it with a large number (don't worry, its temporary). This will eliminate the conflict.

  4. Now save the file and open it in the XCode Interface builder. Xcode should notify you that there was a problem with the file and that it has repaired the problem automatically. The file should now open normally.

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

like image 174
Fszczemton Avatar answered Jan 04 '23 06:01

Fszczemton


I was able to solve this issue

  1. Open the XIB file in a Text Editor - I used TextWrangler
  2. Search for ">17" without the quotes
  3. Replace it with some big number
  4. Now save the file and open it in XCOde Interface builder
  5. if error continue with different value then repeat the step 2 - step 4 until the xcode interface builder opens the xib file.
  6. Xcode will repair the file and it will be working again.

Thanks Pradeep

like image 37
Pradeep Chakravarti Gudipati Avatar answered Jan 04 '23 05:01

Pradeep Chakravarti Gudipati