Xcode 9, where are my NSLog()s going? Not showing in Xcode console or Console.app

Kenny Wyland picture Kenny Wyland · Oct 29, 2017 · Viewed 7.2k times · Source

I'm trying to do some basic logging while I work on an app. I tossed some NSLog()s into my code, but nothing is being printed to the Xcode console below. Literally nothing, not even some startup info as the app launches, etc.

I've got my Xcode console set to display All Output and I've got the variable inspector and the Console open:

enter image description here

enter image description here

I heard about Logging changes and that a new Console.app was introduced that would let me view the logs on the simulators as well, so I thought maybe the logs would show up over there, but while I do so lots of system messages happening I don't see the NSLog()s that I'm making.

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

EDIT:

I was doing this with an iOS 11 simulator and got no console output. When I switched to an iOS 9 simulator then I got all of the console output.

Answer

Kenny Wyland picture Kenny Wyland · Nov 6, 2017

Figured it out. It's not an intermittent issue or one that can just be fixed with a restart. It's a Run configuration issue.

Click on the Run Scheme selector in the top left of Xcode's toolar.

Click Manage Schemes.

enter image description here

Click on your main App Project.

Click the Edit button in the bottom left.

enter image description here

Uncheck OS_ACTIVITY_MODE.

Click Close.

Viola. All your console logs come back.

enter image description here