Skip to content

chisel does not work with swift #148

Closed
@cuong1112035

Description

@cuong1112035

I try chisel but it only work with objective-c project. when trying with swift project I got some error like this
border self.view
error: error: use of undeclared identifier 'self'
error: 1 errors parsing expression
Traceback (most recent call last):
File "/usr/local/opt/chisel/libexec/fblldb.py", line 79, in runCommand
command.run(args, options)
File "/usr/local/Cellar/chisel/1.4.0/libexec/commands/FBDisplayCommands.py", line 75, in run
if viewHelpers.isView(obj):
File "/usr/local/opt/chisel/libexec/fblldbviewhelpers.py", line 66, in isView
return isUIView(obj) or isNSView(obj)
File "/usr/local/opt/chisel/libexec/fblldbviewhelpers.py", line 60, in isUIView
return not runtimeHelpers.isMacintoshArch() and fb.evaluateBooleanExpression('[(id)%s isKindOfClass:(Class)[UIView class]]' % obj)
File "/usr/local/opt/chisel/libexec/fblldbbase.py", line 70, in evaluateBooleanExpression
return (int(evaluateIntegerExpression('(BOOL)(' + expression + ')', printErrors)) != 0)
File "/usr/local/opt/chisel/libexec/fblldbbase.py", line 62, in evaluateIntegerExpression
output = evaluateExpression('(int)(' + expression + ')', printErrors).replace(''', '')
AttributeError: 'NoneType' object has no attribute 'replace'

Could you give me some advice to make it run with swift?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions