无法在Xcode中进行调试:调试器中将无法使用此模块的调试信息 [英] Cannot debug in Xcode: Debug info from this module will be unavailable in the debugger

查看:542
本文介绍了无法在Xcode中进行调试:调试器中将无法使用此模块的调试信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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


$ b 您无法使用 expr 执行命令,并且没有可查看的变量信息。 / p>

Firebase是在没有Cocoapods的情况下使用以下指令进行集成的: https://firebase.google.com/docs/ios/setup#frameworks



这是Xcode在尝试执行命令后显示的内容 expr

 警告:模块Test中出现Swift错误。 
调试器中将无法使用此模块的调试信息。

错误:在自动导入中:
无法从AST上下文获取模块测试:
错误:缺少必需的模块Firebase

$ b

我们使用的是Swift 3.

解决方案

这个问题并没有更新包含 module.modulemap 目录的用户标题搜索路径

是手动安装时偶然忽略的指令:


如果您使用的是Swift,或者您想使用模块,请将
module.modulemap到您的项目中,并更新您的用户头
搜索路径来包含您的模块
地图。

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

可能有其他人受益于我们的愚蠢! :)

Debugging in Xcode is not possible after adding Firebase.

You cannot execute commands with expr and there is no variable information viewable.

Firebase was integrated without Cocoapods using these directions: https://firebase.google.com/docs/ios/setup#frameworks

Here's what Xcode displays after trying to execute a command with 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'

We're using Swift 3.

解决方案

The problem was not updating User Header Search Paths with the directory containing module.modulemap.

Here are the instructions, accidentally overlooked, for manual installation:

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.

The other hiccup was recognizing the correct directory path since we used groups to organize files, not folders.

May someone else benefit from our stupidity! :)

这篇关于无法在Xcode中进行调试:调试器中将无法使用此模块的调试信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆