添加 Firebase 后无法在 Xcode 中进行调试。
不能用expr执行命令,也没有可查看的变量信息。
Firebase 是在没有 Cocoapods 的情况下使用以下说明集成的:https://firebase.google.com/docs/ios/setup#frameworks
这是 Xcode 在尝试使用 expr 执行命令后显示的内容:
warning: Swift error in module Test.
Debug info from this module will be unavailable in the debugger.
error: in auto-import:
failed to get module 'Test' from AST context:
error: missing required module 'Firebase'
我们正在使用 Swift 3。
最佳答案
问题是没有使用包含 module.modulemap 的目录更新 User Header Search Paths。
以下是手动安装的说明,不小心被忽略了:
If you're using Swift, or you want to use modules, drag module.modulemap into your project and update your User Header Search Paths to contain the directory that contains your module map.
另一个小问题是识别正确的目录路径,因为我们使用组来组织文件,而不是文件夹。
愿其他人从我们的愚蠢中受益! :)
关于ios - 无法在 Xcode : Debug info from this module will be unavailable in the debugger 中调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46675100/