美文网首页
iOS报错记录:dyld: could not load ins

iOS报错记录:dyld: could not load ins

作者: 小码僧 | 来源:发表于2018-10-11 15:03 被阅读115次
  • 错误截图:
    真机安装启动的时候莫名红色断点
  • 报错日志:

日志区打印此警告

dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found

  • 解决方案:

edit scheme —>run debug —>在Memory Management区域将Eanble Guard Malloc设置为不选中

  • 原因解析

关于Enable Guard Malloc,苹果官方解释是:Use libgmalloc to catch common memory problems such as buffer overruns and use-after-free.

大致意思是:使用libgmalloc来捕获缓存区溢出和访问已经被释放掉的内存等常见的内存问题。

这个是等同于默认malloc库功能的另外一个调试库,为了定位大内存越界访问问题。

使用环境:只能在模拟器上使用,若在真机上运行,会直接报错

相关文章

网友评论

      本文标题:iOS报错记录:dyld: could not load ins

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