iOS - 运行错误02

2016-11-18  本文已影响59人  Mr_Bob_
前言:

最近Xcode 升级8.1后,使用SVProgressHUD时候回出现奔溃现象, 会 Crash after launched at "NSBundle *imageBundle = [NSBundle bundleWithURL:url];' -- SVProgressHUD.m -- line 335具体如下图:

Paste_Image.png
具体解决方法:

当我们去打印时候, url 为 nil 是没有找到 SVProgressHUD.bundle 的文件的,解决方法如下图:

Paste_Image.png

在 Copy Bundle Resource 下添加 SVProgressHUD.bundle 即可
如图:

Paste_Image.png Paste_Image.png Paste_Image.png

这样就可以完美的解决问题了

上一篇 下一篇

猜你喜欢

热点阅读