swift——断点打印,po结果为error: use of unresolved identifier 'xxx'

最近在项目中打断点,看数据总是会报error: use of unresolved identifier 'xxx',然后搜索半天终于在Stack Overflow里贴子提到了(不得不说,里面大牛是真的多)

直接上图:
swift——断点打印,po结果为error: use of unresolved identifier 'xxx'_第1张图片
粘贴图片.png

如果打印不出东西,在Build Settings里搜索SWIFT_OPTIMIZATION_LEVEL,然后按照下图那样设置


swift——断点打印,po结果为error: use of unresolved identifier 'xxx'_第2张图片
粘贴图片.png

然后就可以打断点,愉快的po出数据了。

转载请注明出处,谢谢。

你可能感兴趣的:(swift——断点打印,po结果为error: use of unresolved identifier 'xxx')