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

前端 未结 1 1663
半阙折子戏
半阙折子戏 2021-02-20 01:50

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

相关标签:
1条回答
  • 2021-02-20 02:12

    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.

    Click on your main App Project.

    Click the Edit button in the bottom left.

    Uncheck OS_ACTIVITY_MODE.

    Click Close.

    Viola. All your console logs come back.

    0 讨论(0)
提交回复
热议问题