替代标题(帮助搜索)
- 无法在 Xcode 8 中调试链接到 Objective-C 应用程序的 Swift 2.3 框架
error in auto-import: failed to get module 'XYZ' from AST context
Xcode 8- Xcode 8 无法调试 Swift 框架
warning: Swift error in module <XYZ>
- 解决方法;Xcode Debugger 不能调试仅用 Objective-C 编写的应用程序,但只能与仅用 Swift 编写的框架链接。(28312362)
我有一个用 Objective-C 编写的应用程序,它链接到一些用 Swift 2.x 编写的模块(框架)。
问题
一切(调试等)在xcode7中工作正常,但是当移动到xcode8并更新模块以使用swift2.3 时,我无法调试模块。
LLDB 报告了这些错误:
warning: Swift error in module XYZ.
Debug info from this module will be unavailable in the debugger.
error: in auto-import:
failed to get module 'ABC' from AST context
如果我将模块链接到在 Swift 2.3 中构建的应用程序,则不会发生这种情况。