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.
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.
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!
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.
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! :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With