Base Internationalization and “Could not find a storyboard named […]”

这一生的挚爱 提交于 2019-12-11 01:11:42

问题


I am using iOS 6 and trying to use base internationalization. But when I flip the switch and run, I get a "Could not find a storyboard named […]" exception.

I tried removing and adding the storyboard file both from the build phases and from the project itself to no avail. I notice in the build phases, that the storyboard is there but it is red.

Is there a trick to get this working?


回答1:


Select the red storyboard entry in your project navigation, go to the file inspector use the button beside the file name to navigate to the file on disk:

<-- the button at bottom right

If this is not enough or not possible try these strategies:

  • Clean project, holding down the shift key (this will clean the entire directory).
  • Restart Xcode.
  • Check the target in the file inspector rather than setting it in build phases.
  • Try to verify that the file is not corrupted. (Change something in IB and save.)


来源:https://stackoverflow.com/questions/15848165/base-internationalization-and-could-not-find-a-storyboard-named

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