问题描述
解决方案
推荐使用Ack,比grep还方便,可以在指定文件夹里搜索指定文本,支持正则。
解决方案二:
Xcode中的调试日志都存储在这里:
~/Library/Developer/Xcode/DerivedData/<YOURAPP>/Logs/Debug/
.xcactivitylog
文件是gz文档,解压:
~/Library/Developer/Xcode/DerivedData/<YOURAPP>/Logs/Debug/The .xcactivitylog files are actually just gz archives. Decompress them: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
进行搜索了.
时间: 2024-09-20 21:13:31