NSLog statements not showing for iOS 10 in apple Configurator

懵懂的女人 提交于 2019-12-11 23:49:39

问题


I have an app built using XCode 7.3 and it works fine with iOS 10.
But, the NSLog() statements that I had used for debugging earlier aren't showing up.
I could see them earlier inside apple configurator and now all I can see are so many kernel process messages.
The same is still working when I test an iOS 9.x device.
Kindly, update if this is resolved or is there any workaround.


回答1:


If you have use XCode 8 then solution is below...

Goto -> Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment Variables

In the Environment Variables: Perhaps you once added the Name "OS_ACTIVITY_MODE" and the Value "disable" and check it. But this way can lead to the Console cannot NSLog when the real iPhone debugging.

I solve it in this way: Only add "OS_ACTIVITY_MODE" and check it(Don't add the Value)

You can also see in below image

For XCode 7 You don't have any solution.

Alternative for this problem: I can't see NSLog output in real iOS 10 device neither. If you're using real devices, you can open Devices window from Xcode (Shift + Command + 2) and see device logs there, but it's hard to look at your app's logs because the console shows logs from system and all apps.

NOTE: If you check the Xcode 8 beta release notes, you'll find that it says: When debugging an app running on Simulator, logs may not be visible in the console. Workaround: Use command + / in Simulator.app to open the system log in the Console app to view NSLogs. (26457535)



来源:https://stackoverflow.com/questions/39867667/nslog-statements-not-showing-for-ios-10-in-apple-configurator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!