我正在运行一些 iOS 应用程序测试,并希望让 xcode 的控制台将其输出记录到文件中。有没有办法我可以做到这一点?
问问题
6092 次
2 回答
0
有一个很棒的框架可以为您执行此操作(和其他日志记录方法)。它叫可可伐木工
于 2012-10-03T05:10:49.587 回答
0
看看Redirecting debug output from XCode 4 console to a log file。
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
于 2012-10-03T05:23:25.180 回答