We migrated our iOS project to Swift 3 and Xcode 8. Since then, the debugger cannot show any value for the variables. If I try to print a variable:
p someVar
I am getting this error message. SchemaManager.h
is a bridge header. (The actual name of the project is replaced by yyy below):
warning: Swift error in module yyy. Debug info from this module will be unavailable in the debugger. error: in auto-import: failed to get module 'yyy' from AST context: /Users/xxx/Documents/yyy/yyy/Common/Model/SchemaManager.h:10:9: note: while building module 'SQLiteMacOSX' imported from /Users/xxx/Documents/yyy/yyy/Common/Model/SchemaManager.h:10: #import <sqlite3.h> ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk/usr/include/sqlite3.h:35:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk/usr/include/sqlite3.h:35: #include <stdarg.h> /* Needed for the definition of va_list */ ^ <module-includes>:33:9: note: in file included from <module-includes>:33:
The main error is as follows:
error: 'utmp.h' file not found
Elsewhere, I read that problems with the bridge header can prevent the debugger from displaying variable values. But I'm not sure how I fix this problem.
source share