无法在Xcode中进行debugging:debugging器中将无法使用此模块的debugging信息

添加Firebase后,无法在Xcode中进行debugging。

你不能用expr执行命令,也没有可查看的variables信息。

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。

您必须将您的模块(如Firebase)添加到您的podfile中的test-scheme

的CocoaPods

 source 'https://github.com/CocoaPods/Specs.git' # Uncomment the next line to define a global platform for your project platform :ios, '10.0' target 'yourApp' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks! # Pods for yourApp pod 'Alamofire', '4.4.0' pod 'Firebase', '4.3.0' target 'yourAppTests' do inherit! :search_paths # Pods for testing pod 'Firebase', '4.3.0' end end 

手动添加

(我不是100%确定这是否有效)

  1. 点击Xcode中的Projekt(项目中的第一个列表点)
  2. 在目标select您的testing目标(yourAppTests)
  3. 在“生成设置”中search“其他链接”
  4. 添加到“其他链接器标志”
    1. -ObjC
    2. -framework
    3. “GoogleToolboxForMac”
    4. -framework
    5. “nanopb”

这是一个xCode的错误。 我有同样的问题。 经过一番研究,我发现这是由于糟糕的代码,特别是当你使用clousures.That被报告为Xcode的错误,有办法来解决它。 使用打印(“”)为debugginf 🙁

问题是没有更新包含module.modulemap目录的User Header Search Paths

以下是手动安装时偶然忽略的说明:

如果您使用的是Swift,或者您想使用模块,请将module.modulemap拖到您的项目中,并更新您的用户头searchpath以包含包含您的模块映射的目录。

另一个打嗝是识别正确的目录path,因为我们使用组来组织文件,而不是文件夹。

愿别人从我们的愚蠢中受益! 🙂