Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I have used xcode 4.6 for past 4 months.

All apps are working fine till now.

Now i have received a new application source code for some changes.

When ever i executes the application. I showing an error that was

The document "DetailTransactionPage.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

Any interface builder is not able to open.

I have tried to open with 4.5.2, 4.3.3 as well but no use.

enter image description here

like image 391
user2732294 Avatar asked Sep 23 '13 08:09

user2732294


2 Answers

As I guess, the source code you have got may be built with different Xcode version rather than you are using right now.

So, I think you need to perform following steps.

  1. Right click on XXX.xib file and select "Show File Inspector."

  2. Go to Interface Builder Document.

  3. Change Development option with the version of Xcode you are using.

Hope that helps you.

like image 109
Manthan Avatar answered Nov 12 '22 16:11

Manthan


This error is caused due to a xib created from XCode 5. You need to install Xcode 5 to be able to change the compatibility properties for that xib file. After you install, and open the xib, you need to change the "Opens in" property and set it to "XCode 4.6" and "View As" set to iOS 6.1, both from File Inspector of the xib.

like image 22
Vlad Avatar answered Nov 12 '22 18:11

Vlad