Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 有没有办法查看临时应用程序的日志?_Ios_Iphone_Ad Hoc Distribution - Fatal编程技术网

Ios 有没有办法查看临时应用程序的日志?

Ios 有没有办法查看临时应用程序的日志?,ios,iphone,ad-hoc-distribution,Ios,Iphone,Ad Hoc Distribution,在调试模式下运行应用程序时,只需直接从xCode查看日志及其println()调用即可 我想在生产环境中测试一些东西,因此希望查看我使用临时配置文件签署的应用程序的日志。有没有办法做到这一点?如何操作?@david,为此,您必须将警报视图设置到您想登录的任何位置 使用SimpleUIAlertView您可以在iPhone警报屏幕中查看您的重要日志,这是一个好主意,您可以使用它在测试应用程序后,您必须删除它 UIAlertView *alert = [[UIAlertView alloc] in

在调试模式下运行应用程序时,只需直接从xCode查看日志及其
println()
调用即可


我想在生产环境中测试一些东西,因此希望查看我使用临时配置文件签署的应用程序的日志。有没有办法做到这一点?如何操作?

@david,为此,您必须将警报视图设置到您想登录的任何位置

使用SimpleUIAlertView您可以在iPhone警报屏幕中查看您的重要日志,这是一个好主意,您可以使用它在测试应用程序后,您必须删除它

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

在XCode 7中,首先将设备与Mac连接,然后打开XCode->Windows->Devices。

选择设备->您的设备(要查看日志)。 看底部,有一个小箭头,触摸它可以看到设备的运行日志


我看不到一个小箭头Nevermind,我看到了,但我想你在生产中看不到println。为什么要使用println(),它不是苹果的日志系统,它是C函数,它只是显示在命令行中。您应该改用NSLog()。这也适用于iOS 10设备吗?因为它不适用于我的情况,但适用于iOS 9设备。