chisel icon indicating copy to clipboard operation
chisel copied to clipboard

pivar and wivar can not be used.

Open hecomzhangzhiguo opened this issue 8 years ago • 3 comments

(lldb) pivar self _view error: error: call to unavailable function 'object_getInstanceVariable': not available in automatic reference counting mode error: no matching function for call to 'ivar_getTypeEncoding' note: candidate function has been explicitly made unavailable note: candidate function not viable: cannot convert argument of incomplete type 'void *' to 'Ivar' (aka 'objc_ivar *') error: 2 errors parsing expression Traceback (most recent call last): File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand command.run(args, options) File "/usr/local/Cellar/chisel/1.5.0/libexec/commands/FBPrintCommands.py", line 293, in run result = fb.evaluateExpressionValue('(({} *)({}))->{}'.format(printCommand, objectClass, object, ivarName)) NameError: global name 'printCommand' is not defined

hecomzhangzhiguo avatar Feb 06 '17 03:02 hecomzhangzhiguo

Thanks for the report. This might be related to #180. I'll try to put together a fix.

kastiglione avatar Feb 06 '17 19:02 kastiglione

Thanks.

hecomzhangzhiguo avatar Feb 07 '17 03:02 hecomzhangzhiguo

The same problem 0x610000222360 - instance address

pivar 0x610000222360 _tableView
Traceback (most recent call last):
  File "/usr/local/opt/chisel/libexec/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/usr/local/Cellar/chisel/1.5.0/libexec/commands/FBPrintCommands.py", line 293, in run
    result = fb.evaluateExpressionValue('(({} *)({}))->{}'.format(printCommand, objectClass, object, ivarName))
NameError: global name 'printCommand' is not defined

error Sample code:

@interface MyClass : NSObject <NSObject>

@property (nonatomic) UITableView *tableView;

@end

kos9kus avatar Feb 16 '17 17:02 kos9kus