lldb怎么了?做了很多次,但现在不起作用。 (Xcode 6.4和Xcode 7.0-beta)
(lldb) po [UIApplication sharedApplication]
Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call
error: 0 errors parsing expression
error: The expression could not be prepared to run in the target
(lldb) p @[@"", @""]
Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call
error: 0 errors parsing expression
error: The expression could not be prepared to run in the target
(lldb) po @[@"", @""]
Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call
error: 0 errors parsing expression
error: The expression could not be prepared to run in the target
(lldb) e id $a = @[@"11"]
Error [IRForTarget]: Couldn't resolve the class for an Objective-C static method call
error: 0 errors parsing expression
error: The expression could not be prepared to run in the target
更新
[也许这是我在ios 9.0 beta上的iPod touch的问题,但在我的同事的ios 8.4的iPad上都可以正常工作。该问题已解决。
我找到Xcode settting:目标->构建设置->马赫-O类型,将动态库更改为静态库。应该可以。