获取Xcode控制台输出以登录文件 [英] Get Xcode console output to log in a file
本文介绍了获取Xcode控制台输出以登录文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行一些iOS应用程序测试,并希望得到xcode的控制台将其输出记录到一个文件。
我有办法吗?
I'm running some iOS app tests and would like to get xcode's console to log its output to a file. Is there a way I can do this?
推荐答案
defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
defaults write com.apple.Xcode PBXGDBDebuggerLogFileName <filepath>
/Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin
#!/bin/sh
/Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin- $* | tee -a $HOME/tmp/xcode-gdb.log 2>&1
这篇关于获取Xcode控制台输出以登录文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文