You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UPDATE: debugging works if C module is in a separate repository. So, this problem is only present if there are two modules in Sources/ dir of the same repo.
Jim I and I looked into this a bit today and discovered that LLDB is (rightfully) refusing to import 'CLib' because it contains references to thirdpartylib.h, which is not part of any module. The compiler would reject this too, except for the module map stuck inside the Sources/CLib/ directory, which would normally be ignored if it weren't for an extra, possibly-mistaken search path to that directory.
We do see that this is a stripped-down test case attempting to reproduce a real issue, but the general principle here is "all C headers you import must belong to a module", and the "System Modules" feature of SwiftPM is the supported way to do that for externally-available sources.
Environment
OS X, Xcode 8.2 beta (8C23)
Additional Detail from JIRA
md5: ff8ca5b36378a02cd00801a6b06efbbc
relates to:
Issue Description:
When C module references a header outside of module's include/ directory, lldb stops showing variable
values for the entire application.
UPDATE debugging works if C module is in a separate repository. So, this problem is only present if there are two modules in same repo's Sources/ dir.
I reproduced this with a minimal example. Steps to reproduce:
Choose Main target, put the breakpoint at print() in main.swift.
Run the app.
In Debugger, choose "Show all variables".
Value of variable "i" won't be printed.
In lldb, type "p i", which will produce:
Detailed description:
I created a Swift app with the following structure:
The app compiles and works fine from console:
If you want to regenerate the xcodeproj:
The app will now compile and run, but debugging won't work.
The text was updated successfully, but these errors were encountered: