NSLog not printing to console

后端 未结 7 895
渐次进展
渐次进展 2020-12-13 17:38

I have an Xcode project I\'ve been working on for months. I\'ve never had a problem with NSLog, but after upgrading to Xcode 4.2 nothing will log to the console. I even trie

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 17:51

    This is a bug of Xcode8 + iOS10, we can solve it in this way:

    When on simulator, add the Name OS_ACTIVITY_MODE and the Value Variables disable and check it (Product -> Scheme -> Edit Scheme -> Run -> Arguments -> Environment).

    When on device, only add OS_ACTIVITY_MODE and check it(don't add the Value). You'll see the NSLog in the Xcode8 Console.

提交回复
热议问题