The document “XXXX.xib” could not be opened. Could

2019-02-03 04:48发布

After opening my project in the Xcode5 developer preview, errors appeared against a few .xib files when I tried to open the project in Xcode 4.5. The error text was:

 The document "XXXX.xib" could not be opened. Could not read archive.

 Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility.

The project's development target in Xcode5 appears to be iOS 5.0.

Looking at the source code of the .xib files with errors, it is clear that the .xml structure for .xib files in Xcode5 has changed quite dramatically, and it needs to be reformatted to be backwards compatible.

Is there a way to set development targets for specific .xib files? Does anyone know how this error can be resolved?

Many thanks.

7条回答
老娘就宠你
2楼-- · 2019-02-03 05:31
  1. First you have to open your's project with newer version of Xcode.
  2. Right click on XXX.xib file and select "Show File Inspector."
  3. Go to Interface Builder Document.
  4. Change Development option with older version of Xcode.
查看更多
登录 后发表回答