SVProgressHUD报错Crash

今天在项目中遇到了这样的一个问题,cocoapods更新升级之后SVProgressHUD直接crash了。

SVProgressHUD报错Crash_第1张图片
错误图示

```

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSBundle initWithURL:]: nil URL argument'

*** First throw call stack:

(0x184719900 0x183d87f80 0x184719848 0x185065b78 0x185065afc 0x10017de30 0x10017b44c 0x10288dbb0 0x10288ea28 0x10017b354 0x10017c740 0x10017c4e8 0x100076564 0x1000764a4 0x189443e50 0x189443dcc 0x18942ba88 0x1894436e4 0x189443314 0x18943be30 0x18940c4cc 0x18940a794 0x1846d0efc 0x1846d0990 0x1846ce690 0x1845fd680 0x185b0c088 0x189474d90 0x1000c30c8 0x18419e8b8)

libc++abi.dylib: terminating with uncaught exception of type NSException

```

解决方案如下:

1.重新安装SVProgressHUD需要指定地址。 

pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git'

2.清理derived data并重启模拟器 

清理derived data步骤:打开xcode->preference->location->derived Data。

你可能感兴趣的:(SVProgressHUD报错Crash)