facebook / chisel

Chisel is a collection of LLDB commands to assist debugging iOS apps.
MIT License
9.13k stars 803 forks source link

'pmethods self' error #211

Closed sunbohong closed 6 years ago

sunbohong commented 6 years ago
error: error: no matching function for call to 'object_getClass'
candidate function not viable: no known conversion from 'long' to 'id  _Nullable __strong' for 1st argument
error: error: use of undeclared identifier 'None'
Traceback (most recent call last):
  File "/Users/sunbohongbohong/chisel/fblldb.py", line 83, in runCommand
    command.run(args, options)
  File "/Users/sunbohongbohong/chisel/commands/FBClassDump.py", line 33, in run
    cls = getClassFromArgument(arguments[0], options.clsname)
  File "/Users/sunbohongbohong/chisel/commands/FBClassDump.py", line 167, in getClassFromArgument
    if not isClassObject(cls):
  File "/Users/sunbohongbohong/chisel/commands/FBClassDump.py", line 156, in isClassObject
    return runtimeHelpers.class_isMetaClass(runtimeHelpers.object_getClass(arg))
  File "/Users/sunbohongbohong/chisel/fblldbobjcruntimehelpers.py", line 37, in class_isMetaClass
    return fb.evaluateBooleanExpression(command)
  File "/Users/sunbohongbohong/chisel/fblldbbase.py", line 84, in evaluateBooleanExpression
    return (int(evaluateIntegerExpression('(BOOL)(' + expression + ')', printErrors)) != 0)
  File "/Users/sunbohongbohong/chisel/fblldbbase.py", line 76, in evaluateIntegerExpression
    output = evaluateExpression('(int)(' + expression + ')', printErrors).replace('\'', '')
AttributeError: 'NoneType' object has no attribute 'replace'