Xcode debugger doesn't print objects and shows nil, when they aren't

后端 未结 15 1795
暖寄归人
暖寄归人 2020-12-02 05:09

Xcode shows an error when trying to print an object with po , but only for one project.

error: Couldn\'t mater

15条回答
  •  时光说笑
    2020-12-02 06:00

    Make sure that Address Sanitizer is turned off in your Scheme settings. The Address Sanitizer does not work well with the debugger.

    1. Go to Edit Scheme (Product >> Scheme >> Edit Scheme), choose Run, and go to the Diagnostics tab.
    2. Make sure "Enable Address Sanitizer" is off.

提交回复
热议问题