ios - 无法在 Xcode : Debug info from this module will be unavailable in the debugger 中调试

标签 ios swift xcode debugging firebase

添加 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/

相关文章:

javascript - 在 JavaScript 中是否有等同于 Swift 的 guard 语句?

xcode - 查看导致 pthread_mutex_lock 死锁的原因

ios - CFDictionary 更新到 PHPhotoLibrary kCGImagePropertyExifDictionary 不采取

ios - UICollectionView 滚动 Alamofire 时在错误位置加载图像

ios - 未知类型名称类,您是说类吗

iphone - AFIncrementalStore 处理具有关系的非休息响应

ios - NSURLConnection 在两次后崩溃

ios - 我可以检测 iOS Chromecast SDK 中的字幕或音轨何时发生变化吗?

ios - 在 SwiftUI - Xcode 11 中设置 MKMap 的缩放级别

ios - 更新 Cordova 插件导致插件失败