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

StackOverflow https://stackoverflow.com/questions/12509802

  •  03-07-2021
  •  | 
  •  

Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top