解决方法
Xcode存储调试日志
~/Library/Developer/Xcode/DerivedData/<YOURAPP>/Logs/Debug/
.xcactivitylog文件实际上只是gz存档.解压缩:
cd ~/Library/Developer/Xcode/DerivedData/<YOURAPP>/Logs/Debug/ EXT=".xcactivitylog" for LOG in *.xcactivitylog; do NAME=`basename $LOG $EXT` gunzip -c -S $EXT "${NAME}${EXT}" > "${NAME}.log" done
现在您可以使用grep或Spotlight轻松搜索,或者您喜欢的.