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

后端 未结 15 1735
暖寄归人
暖寄归人 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 05:57

    The solutions here will also fix the bug where you see error: :1:1: error: use of unresolved identifier every time you try to po a variable.

    For me the solution was to go to Build Settings and search for Optimization Level and make sure each Debug setting was set to None.

提交回复
热议问题