5 Replies
      Latest reply: Jun 12, 2017 4:56 PM by KG_DEV RSS
      AarbronBeast Level 1 Level 1 (10 points)

        Why does this happen and how can it be resolved?  (See output dump below showing my interactions with lldb)  MyModule is a standard macOS project.  It imports SpriteKit and a framework that I wrote, which is another project in the same workspace.  Both projects in the workspace are written in 100% Swift 3.0.  Both projects have their "Use Legacy Swift Language Version" (SWIFT_VERSION) setting set to NO.  Changing this value doesn't affect this issue.  I am using Xcode Version 8.2 beta (8C30a).

         

        It's worth noting that my framework project was previously written in Swift 2.x but has since been refactored for Swift 3.0.  Not sure if there is some other project setting that might be causing this.

         

         

        2016-11-21 10:43:17.428200 MyModule[90945:3495758] [DYMTLInitPlatform] platform initialization successful

        2016-11-21 10:43:17.571197 MyModule[90945:3495732] Metal GPU Frame Capture Enabled

        2016-11-21 10:43:17.571563 MyModule[90945:3495732] Metal API Validation Enabled

        (lldb) po path

        error: in auto-import:

        failed to get module 'MyModule' from AST context:

        (lldb) po path

        Shared Swift state for MyModule has developed fatal errors and is being discarded.

        REPL definitions and persistent names/types will be lost.

        error: in auto-import:

        failed to get module 'MyModule' from AST context:

        (lldb)