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

后端 未结 7 1746
名媛妹妹
名媛妹妹 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:28

    For those who are using Swift framework in an Objective-c project, and wanna debug the Swift source files in that project: (In my case, I have a mixed-language module which managed by Cocoapods, I need to debug the swift module in my Objective-c Example project)

    It works for me after I added an Empty Swift file in my Objective-c project.

    Otherwise, those swift compiler options won't show up in the Build Settings.

提交回复
热议问题