IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Could not load the “” image referenced from a nib in the bundle with identifier “com.xxx.xxx”

    R0uter发表于 2017-01-25 18:46:26
    love 0

    去落格博客阅读完整排版的Could not load the “” image referenced from a nib in the bundle with identifier “com.xxx.xxx”

    今天遇到一个奇怪的问题,程序运行一点问题都没有但终端报错如下

    Could not load the "" image referenced from a nib in the bundle with identifier "com.xxx.xxx"

    其实就是题目上的错误,这个问题看上去挺简单——不就是引用的图片丢失了么……

    其实不然,由于名字是

    ""
     所以你根本找不到究竟是哪个图片丢失了——实际上一个都没有丢。

    毕竟程序里边的资源一个都没有错。

    其实,这个问题来自于你的 xib 或者 storyboard,对可疑的 xib 或者 storyboard 点击右键,选择

    open as...
      ,以源代码的形式打开,然后搜索关键字“
    image
     ”,看看谁的参数里图片的名字是奇怪的随机码,大概如下:

    <state key="normal" title="Use" backgroundImage="0E39AEA8-7F29-40B2-96B1-63B99047E8D5">

    然后在图形界面去看的话,它图片那里显示的就是“Unkown Image”,把它重新选择一下即可。

    然后依次寻找,把所有的错误地方都替换掉,直到这个提示不再出现。

    延伸阅读

    Could not load the “” image referenced from a nib

    Could not load the “” image referenced from a nib in the bundle with identifier “com.xxx.xxx”,首发于落格博客。

    其他推荐:
    1. Could not load the image referenced from a nib in the bundle running on device
    2. 使用七牛CDN导致ajax评论报错{“error”:”get from image source failed: E405″}
    3. 华为MA5680T常用排错命令实例浅析
    4. Linux ubuntu Gnome 3 美图欣赏!
    5. 购买了VPS之后你应该做足的安全措施



沪ICP备19023445号-2号
友情链接