简体   繁体   中英

lldb - Couldn't resolve the class for an Objective-C static method call

What's wrong with lldb? Was doing it many times but now does not work. (Xcode 6.4 and 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

Maybe it was a problem with my iPod touch on ios 9.0 beta but on mine colleague's iPad with ios 8.4 all work well. The problem has been solved.

I find Xcode settting:Targets->build Settings->Mach-O Type, change Dynamic Library to Static Library. It should work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM