美文网首页
SVProgressHUD报错Crash

SVProgressHUD报错Crash

作者: Bryan_Dong | 来源:发表于2018-07-25 10:31 被阅读0次

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

    错误图示

    ```

    *** 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

          本文链接:https://www.haomeiwen.com/subject/wstpmftx.html