`po` gives `error: :1:1: error: use of unresolved identifier`

后端 未结 7 1745
名媛妹妹
名媛妹妹 2020-12-08 13:00

I have this problem with po in the console where trying to output a function works in itself, but outputting a variable or constant doesn\'t.

7条回答
  •  猫巷女王i
    2020-12-08 13:24

    I encountered a similar issue but I already had the correct configuration, all optimisations set to None. However I still didn't get any values.

    After some further digging I found out that the issue originated from Xcode being unable to the resolve the types:

    (lldb) frame variable self
    
    

    That led me to this question: xcode 8 Debugger 'Could not resolve type' where the issue is described and the bridging header seems to cause issues.

    With my project not having any bridging headers I studied the build settings once more and found this setting

    setting[1]

    This was initally set to YES. After changing the it to NO symbols are working again.

    SWIFT_INSTALL_OBJC_HEADER = NO

提交回复
热议问题