无法打开文档".xib".无法读取存档

use*_*294 6 iphone xcode objective-c xib ios

我在过去4个月里使用过xcode 4.6.

到目前为止,所有应用都运行正常.

现在我收到了一些新的应用程序源代码,用于一些更改.

什么时候我执行应用程序.我显示的错误是

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

任何界面构建器都无法打开.

我试图用4.5.2,4.3.3打开但没有用.

在此输入图像描述

Man*_*han 11

我猜,你所获得的源代码可能是用不同的Xcode版本构建的,而不是你现在使用的.

所以,我认为你需要执行以下步骤.

  1. 右键单击XXX.xib文件,然后选择"显示文件检查器".

  2. 转到Interface Builder Document.

  3. 使用您正在使用的Xcode版本更改开发选项.

希望对你有所帮助.


Vla*_*lad 8

此错误是由于从XCode 5创建的xib引起的.您需要安装Xcode 5才能更改该xib文件的兼容性属性.安装并打开xib后,需要更改"打开"属性并将其设置为"XCode 4.6"和"查看为"设置为iOS 6.1,两者都来自xib的File Inspector.