Xcode 9, where do my NSLog () go? Do not show in Xcode or Console.app

I am trying to do basic registration when I am working on an application. I have entered the code NSLog()in my code, but nothing is printed on the Xcode console below. Literally nothing, even some startup information that the application launches, etc.

I have the Xcode console installed for display All Output, and I have a variable inspector and an open console:

enter image description here

enter image description here

I heard about the changes in Logging and that a new Console.app was introduced, which will allow me to view the logs on the simulators, so I thought that maybe the logs will appear there, but so far I am doing so much system Messages that I make . I do not see NSLog () which I do.

Am I missing something? Is there a new setting that I need to flip? Where can I see my NSLog () s?

EDIT:

I did this with the iOS 11 simulator and did not get console output. When I switched to the iOS 9 simulator, I got all the output to the console.

+4
source share
1 answer

Figured it out. This is not an intermittent problem or a problem that can be fixed upon restart. This is a problem starting the configuration.

Click the Run selector in the upper left corner of the Xcode tool.

Click Schema Management.

enter image description here

Click on your main application project.

Click the "Edit" button in the lower left.

enter image description here

Uncheck OS_ACTIVITY_MODE.

Click "Close."

Viola. All your console logs are returned.

enter image description here

+10
source

Source: https://habr.com/ru/post/1688372/


All Articles