有没有办法查看AdHoc应用程序的日志?

时间:2015-02-19 03:44:32

标签: ios iphone ad-hoc-distribution

在调试模式下运行应用时,可以直接从xCode查看日志及其println()来电。

我想在生产环境中测试一些内容,因此希望查看我使用AdHoc配置文件签名的应用程序的日志。有没有办法实现这个目标?怎么样?

2 个答案:

答案 0 :(得分:7)

在XCode 7中,首先,将您的设备与Mac连接,然后打开XCode - > Windows - >设备。 enter image description here

选择设备 - >你的设备(你想看看LOG)。 看看底部,有一个小箭头,触摸它以查看设备的RUNTIME LOG。

enter image description here

答案 1 :(得分:0)

@ david ,为此您必须将 AlertView 设置为NSLOG,

使用简单的 UIAlertView ,您可以查看iPhone警报屏幕中的重要日志,这是个好主意,您可以使用它。 &安培;在测试应用之后,您必须删除

 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"LOG" 
                                                        message:@"Dee dee doo doo." 
                                                        delegate:self 
                                                        cancelButtonTitle:@"Tested" 
                                                        otherButtonTitles:nil];
 [alert show];    
相关问题