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

后端 未结 15 1734
暖寄归人
暖寄归人 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:03

    I have run into this as well and when I found I was in release mode I switch to debug ... no fix. Turns out that I had to do a clean first (cmd+shift+k).

    So I think what happens is that after built in release mode not everything is recompiled in develop and so lldb can't properly read the symbols. After cleaning and recompiling in develop it worked for me.

提交回复
热议问题