我已根据条件设定了一个断点……
[event.name isEqualToString:@"Some Name"]
这很好用.
但是,当我尝试使用条件添加另一个断点时…
[part.name isEqualToString:@"Some Value With A Pound Sign £"]
我收到错误……
Internal error [IRForTarget]: An Objective-C constant string's string initializer is not an array Stopped due to an error evaluating condition of breakpoint
我是否需要逃脱英镑符号或其他什么?
解决方法
表达式解析器和包含非ASCII字符的NSString文字有一个错误.
(lldb) po @"u" $9 = 0x00007fff7debe5e0 u (lldb) po @"ü" Internal error [IRForTarget]: An Objective-C constant string's string initializer is not an array error: warning: expression result unused error: The expression could not be prepared to run in the target
已经有一个关于此问题的http://bugreport.apple.com/报告错误报告.
正确处理非ASCII C字符串文字,因此可以解决此问题,例如:
(lldb) po [NSString stringWithUTF8String:"ü"] $11 = 0x000000010010b040 ü
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。