swift——断点打印,po结果为error: use of u
2017-05-09 本文已影响116人
Bart_Simpson
最近在项目中打断点,看数据总是会报error: use of unresolved identifier 'xxx',然后搜索半天终于在Stack Overflow里贴子提到了(不得不说,里面大牛是真的多)
直接上图:

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

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