xcode - Swift had fatal errors constructing the ast context for this module -


i upgraded project swift 2 in xcode 7 beta (7a120f) , error when trying po self @ lldb prompt:

warning: swift error in module myapp:

swift had fatal errors constructing ast context module: cannot load underlying module 'uikit' debug info module unavailable in debugger.

i'm left crippled debugger (no values). happens regardless of place breakpoint. i've tried:

  • clearing derived data
  • product > clean
  • restarting xcode
  • restarting mac

i'm able create new project , see debug output in it, has how project migrated xcode.

what ast context , how can correct it?

edit: ast 'abstract syntax tree'. still no idea how fix though.

i'm having same issue in project. error lldb spits out when attempting po object highlights issue:

(lldb)po fileurl warning: swift error in module <app_name>:     swift had fatal errors constructing ast context module: <module-includes>:1:9: note: in file included <module-includes>:1: #import "headers/crashlytics.h"         ^ <app_path>/pods/crashlytics/crashlytics.framework/headers/crashlytics.h:10:9: error: include of non-modular header inside framework module 'crashlytics' #import <fabric/fabattributes.h>         ^ 

the crashlytics.h umbrella header in crashlytics.framework importing fabric/fabattributes.h, not part of crashlytics module (i.e. not in module.modulemap). crashlytics 3.1.0 installed using cocoapods.

why xcode 7 treats fatal error beyond me (it warning in 6). in xcode 6 work around sort of "non-modular header include" enabling "allow non-modular includes in framework modules" (clang_allow_non_modular_includes_in_framework_modules) build setting in application target.

i've had no luck getting xcode 7 betas honor above flag (rdar://22044453 <-- please dup).

the solution i've found debugger working remove crashlytics pod. comment out crashlytics , fabric pods, run pod install, resume debugging , reinstall pods before release.

i hope fixed in xcode 7 time comes out of beta.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -