Swift debugging broken - can't inspect variables?

Hi,

I'm trying the evaluation of AppCode and so far I'm very impressed, however debugging is impossible as I can't inspect the contents of any variables.

The "Variables" pane shows all the variables as empty:
completionHandler = {}
self = {}
name = {}
etc.


So I chose the lldb pane, but attempting to use po gives an error:
(lldb) po name
error: Error in auto-import:
failed to get module 'Foundation' from AST context:

module file was created by a newer version of the compiler: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule


Using fr v shows an empty variable again:
(lldb) fr v name
name =
(lldb) fr v completionHandler
completionHandler =
etc.

Is this because I'm using Xcode 6.3 beta 3?

I also noticed the same error (with the same Xcode version) referenced here:  https://youtrack.jetbrains.com/issue/OC-11711
Also here: https://youtrack.jetbrains.com/issue/OC-11626

Is there any workaround for the "module file was created by a newer version of the compiler" error?

Thanks
John

1 comment
Comment actions Permalink

Hi John.

We have such issue in our tracker:
https://youtrack.jetbrains.com/issue/OC-11711
Could you please add your comment there and upvote.

0

Please sign in to leave a comment.