lldb-无法为Objective-C静态方法调用解析该类

问题描述 投票:8回答:1

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上都可以正常工作。该问题已解决。

ios xcode lldb
1个回答
0
投票

我找到Xcode settting:目标->构建设置->马赫-O类型,将动态库更改为静态库。应该可以。

© www.soinside.com 2019 - 2024. All rights reserved.