Crash after launched at "NSBundle *imageBundle = [NSBundle bundleWithURL:url];' -- SVProgressHUD.m -- line 335
PhoenixCheung opened this issue · 6 comments
PhoenixCheung commented
Crash after launched at "NSBundle *imageBundle = [NSBundle bundleWithURL:url];' -- SVProgressHUD.m -- line 335
Aufree commented
Did you run this project on simulator?
ShaneFang commented
我也是差不多的原因崩了,不支持模拟器么?
Aufree commented
@Fisher-Fang 因为从 Xcode 7 开始就支持免证书真机调试, 并且应用需要扫码进行登录, 所以此问题一直没去管它.
ShaneFang commented
@Aufree 折腾了40分钟才跑起来,似乎需要把Pod工程下的DateTools.bundle和SVProgressHUD.bundle复制到主工程下才行,否则你那个获取Bundle路径的方法报异常,然后就崩溃了。
Panway commented
我直接这样改的
UIImage* infoImage = [UIImage imageNamed:@"SVProgressHUD.bundle/info.png"];
UIImage* successImage = [UIImage imageNamed:@"SVProgressHUD.bundle/success.png"];
UIImage* errorImage = [UIImage imageNamed:@"SVProgressHUD.bundle/error.png"];
X-my commented
Manually adding the bundle file works for me.