解决iOS 9 symbolicatecrash卡死
2015-09-29 12:26
603 查看
背景
在iOS 9 的日志里面会出现重复的 ParsecSubscriptionServiceSupport 或 AssetCacheServices , 这导致苹果提供的symbolicatecrash转换时出现卡死。原因
这是由于xcode提供的symbolicatecrash对于重复image的日志会出现死循环。解决方法:
在 XCode目录,找到 symbolicatecrash 文件:/Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash
使用编辑器进行编辑,
将以下代码:
# add ourselves to that chain $images{$nextIDKey}{nextID} = $image{base}; # and store under the key we just recorded $bundlename = $bundlename . $image{base};
替换为:
if ($image{uuid} ne $images{$bundlename}{uuid}) { # add ourselves to that chain $images{$nextIDKey}{nextID} = $image{base}; # and store under the key we just recorded $bundlename = $bundlename . $image{base}; }
懒人的解决方法:
在命令行输入如下脚本,可修改默认的xcode的symbolicatecrash 文件(可能需要输入管理员密码):curl -o /tmp/t.patch https://raw.githubusercontent.com/zqxiaojin/OptSymbolicatecrash/master/fix_dead_loop.patch && cd `xcode-select -p`/../SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/ && sudo patch symbolicatecrash /tmp/t.patch && cd -
相关文章推荐
- iOS 9学习系列:上手SFSafariViewController
- iOS开发实习期间get的技巧
- iOS 9适配技巧(更新版)
- iOS开发-图片加载优化
- [IOS]从零开始搭建基于Xcode7的IOS开发环境和免开发者帐号真机调试运行第一个IOS程序HelloWorld
- ios 除数为0时
- IOS欢迎界面Launch Screen动态加载广告
- iOS9中Bitcode的介绍及配置
- iOS Designated Initializers : Using NS_DESIGNATED_INITIALIZER
- iOS 使用AVFoundation 扫描二维码并限定扫描区域(带代码生成蒙版)
- note: declarations in dependent base ‘std::basic_ios<char>’ are not found by unqualified lookup
- iOS中如何使用PCH文件、修改其相对路径的方法
- [iOS开发项目-5] 图片浏览器
- iOS数据本地化
- XCODE4.6创建我的第一次ios规划:hello
- iOS_正则表达式判断手机型号、邮箱、手机号、身份证、昵称、密码等
- 正则表达式在iOS中的运用
- 修改ios系统文件使Xcode编译出错
- ios常用的判断正则表达式
- iOS 9适配技巧(更新版)