xcode 7.2.1中的Po命令错误

前端之家收集整理的这篇文章主要介绍了xcode 7.2.1中的Po命令错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我从调试器得到了这个结果.我该怎么解决这个问题?

(lldb) po scrollView.contentOffset.y

error: :1:1: error: ambiguous operator declarations found for
operator

scrollView.contentOffset.y found this matching operator declarationfound this matching operator declaration:1:1: error:
operator is not a known binary operator scrollView.contentOffset.y ^
:9:9: warning: initialization of variable ‘$__lldb_error_result’ was never used; consider replacing with assignment to ‘_’ or removing it
var $__lldb_error_result = __lldb_tmp_error

:14:8: error: ambiguous operator declarations found for operator

if (1==1) {

found this matching operator declarationfound this matching operator
declaration:14:8: error: operator is not a known binary operator

if (1==1) {

解决方法

我在这个链接中使用了这个解决方案: https://stackoverflow.com/a/32984193/2060180

我会留在这里以防它对某人有用.

猜你在找的iOS相关文章