环境:
Xcode 6 Beta 4
我试图只使用一个文本值
调试器.但是,调试器无法识别静态变量(通过’Let’).对于vars也是如此.
我试图只使用一个文本值
调试器.但是,调试器无法识别静态变量(通过’Let’).对于vars也是如此.
为什么?
func textFieldShouldReturn(textField:UITextField) -> Bool { let myText = "Hello World" let theText = textField.text! as String return true }
这是调试器的结果:
(lldb) po textField error: :1:1: error: use of unresolved
identifier ‘textField’ textField ^ :11:5: error: use of
unresolved identifier ‘$__lldb_injected_self’
$__lldb_injected_self.$__lldb_wrapped_expr_29(
^ (lldb) po myText error: :1:1: error: use of unresolved identifier ‘myText’ myText ^ :11:5: error: use of unresolved
identifier ‘$__lldb_injected_self’
$__lldb_injected_self.$__lldb_wrapped_expr_30(
^ (lldb) po theText error: :1:1: error: use of unresolved identifier ‘theText’ theText ^ :11:5: error: use of unresolved
identifier ‘$__lldb_injected_self’
$__lldb_injected_self.$__lldb_wrapped_expr_31(
^ (lldb)
这是截图: