首先將.xcactivitylog轉(zhuǎn)化為.log
終端輸入:
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
然后打開Debug文件夾查看.log即可
~/Library/Developer/Xcode/DerivedData/<YOURAPP>/Logs/Debug/