.ips日志文件分析
- 终端命令
find /Applications/Xcode10.app -name symbolicatecrash -type f
找到symbolicatecrash
工具,选择xxx/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash
这个 - 将崩溃App的
.dSYM文件
和.ips文件
拷贝到symbolicatecrash
工具同目录下 - 将
.ips文件
后缀改为.crash
- 终端运行命令
./symbolicatecrash /绝对路径/xxxx.crash /绝对路径/xxx.app.dSYM > xxx.crash
,- 如果提示错误
Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 69.
, - 接着运行终端命令:
export DEVELOPER_DIR="/Applications/Xcode10.app/Contents/Developer"
(注意这个地方的Xcode要指定为xcode-select --switch的对应版本)
- 如果提示错误
Xcode显示编译用时
终端运行命令defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool YES

改善Swift项目编译时间
终端运行命令defaults write com.apple.dt.Xcode BuildSystemScheduleInherentlyParallelCommandsExclusively -bool NO
- 注意该方法只对Xcode9.2及以上版本生效
网友评论