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
update
也许这是我的 ios 9.0 beta 版 iPod touch 的问题,但在我同事的 ios 8.4 版 iPad 上一切正常。 问题已解决。
最佳答案
我找到Xcode设置:Targets->build Settings->Mach-O Type,将Dynamic Library更改为Static Library。它应该可以工作。
关于ios - lldb - 无法解析 Objective-C 静态方法调用的类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31782350/