最近更新了Mac系统和XCode,当我把一个以前的项目用Xcode5打开以后,再用Xcode4.6打开时,选中XXXX.xib/storyboard文件,有的文件会弹出 "The document “XXXX.xib/storyboard" could not be opened. Could not read archive" 的提示,如下图所示:
从上图可以看到,Apple给出了解决办法, "Please use a newer version of Xcode. Consider changing the document's Development Target to preserve compatibility." ,具体如下所示:
1.用 Xcode5 打开项目;
2.选中有问题的xib/storyboard 文件,打开 "Show File Inspector";
3.找到 "Interface Builder Document" ,编辑 "Open in"为 Xcode4.6,如下图所示:
4.保存;(注:Xcode4.6 下没有 "Open in" ,是 "Document Versioning" )
5.再次用 Xcode4.6 打开,就会发现原来不能打开的 xib/storyboard ,可以正常打开了。