xcode storyboard - ibtoold unarchiving exception

心已入冬 提交于 2019-12-05 08:02:25

Just ran into this when trying to open a project - with custom fonts set in a Storyboard - on another computer.

Turns out, the custom fonts needed to be added to that computers Font Book.

Of course, doing it in code works too.

There can be multiple reasons for this error. I got this error after merging storyboards using git. My storyboard also had custom font and I installed them after reading this thread (+1 for that), even after that also I was getting the same error. Then I searched all the places where I got conflict and finally found that one of the segue present in inferredMetricsTieBreakers was not used anywhere in the storyboard. I removed that and restarted XCode and tada everything back in place.

So the bottom line is that thoroughly visit all the places with conflicts, you should be able to solve most merge issues.

-anoop

I just had this issue, and found that it was because I was referencing a font in the Storyboard file that I'd included in the iOS app.

For some reason, once I set the font in code rather than in the Storyboard it worked fine.

Actually the problem was storyboard. I revert git merge on storyboard, so it is able to open on xcode, then remove references manually not by git. Then the error is gone. Magical IOS world..

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