Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot debug in Xcode: Debug info from this module will be unavailable in the debugger

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.

like image 507
Crashalot Avatar asked Oct 10 '17 20:10

Crashalot


People also ask

How do I enable debug mode in Xcode?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

Why breakpoint is not working in Xcode?

See this post: Breakpoints not working in Xcode?. You might be pushing "Run" instead of "Debug" in which case your program is not running with the help of gdb, in which case you cannot expect breakpoints to work!

Does Xcode have a debugger?

With a breakpoint, the Xcode debugger can stop your code at almost any moment and show you the exact state of your app at that point. You can do that by adding a breakpoint to a line of code in your app.


1 Answers

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! :)

like image 176
Crashalot Avatar answered Oct 08 '22 18:10

Crashalot