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

后端 未结 7 1725
名媛妹妹
名媛妹妹 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条回答
  •  北海茫月
    2020-12-08 13:43

    I set Swift Complier to "-O"

    SWIFT_OPTIMIZATION_LEVEL = "-O";
    

    and set it back to "-Onone".

    SWIFT_OPTIMIZATION_LEVEL = "-Onone";
    

    Then it works.

提交回复
热议问题