How to fix ibtool failed with Main.storyboard error: shouldBeArchived unrecognized

笑着哭i 提交于 2019-12-04 04:04:48

This issue was resolved for me after updating my Xcode version.

I ran into this issue after working on a project on in an older version of Xcode and upgrading to El Capitan without then upgrading Xcode.

After upgrading Xcode again, it worked.

Duncan Dean Scholtz

I couldn't get this to work either but what I did was symlink to a newer version of Xcode. I linked 6.3.2 to 6.2.0. I am not sure of the implications of doing this.

ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool /Applications/Xcode_6.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool

This issue usually occurs when you copy any UI from storyboard to XIB or vice-versa. Once you copy any thing cross check if the things are supported in XIB, like if I copy anything from storyboard to xib file, then there are many thing which are not supported (obviously because storyboard is a newer version of xib) and simple example for this is tableview prototype cell.

So just remove those unsupported things from UI and thats it. It will start working again.

This error is caused due to un-matching of size of storyBoard designed by you and of simulator. This can be solved in two ways, by changing size of storyBoard or by de-selecting autolayout option. Autolayout is to place tools as it as in every resolutions. So when mismatching occurs. supposed to be trimmed to fit in screensize. That is the reason behind this error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!