-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chisel does not work with swift #148
Comments
There are some specific swift commands. Type
|
@cuong1112035 in #121 support was added to ensure chisel evaluates code correctly regardless of whether code is objc or swift. If you have any troubles, please let us know, thanks. |
I see the same issue, any suggestions? error: error: use of undeclared identifier 'self' |
I'm having the same issue while using error: error: :1:11: error: use of undeclared type '$__lldb_context' error: :18:5: error: use of unresolved identifier '$__lldb_injected_self' error: error: use of undeclared identifier 'None' |
Thanks for the reports. I'll try to figure out the root cause. |
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?
The text was updated successfully, but these errors were encountered: