ios - lldb - 无法解析 Objective-C 静态方法调用的类

标签 ios xcode lldb

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/

相关文章:

iphone - iPhone 应用程序的财务图表

macos - 如何让lldb忽略EXC_BAD_ACCESS异常?

c++ - X代码 6 : Unable to create watchpoint

ios - lldb 类具有不兼容的父类(super class)

ios - iTunes Connect 上的销售统计数据多久更新一次?

ios - 选择时更改 UIBarButtonItem 颜色

xcode - 我应该在 Swift playgrounds 的 .gitignore 文件中包含什么?

iphone - CATransition后释放 View Controller : Am I doing this right?

ios - 数组 Swift 中的求和级数

ios - iPhone 上的文件夹和图像在哪里?[swift]