Unable to debug in Xcode: debug information from this module will not be available in the debugger

Debugging in Xcode is not possible after adding Firebase.

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

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

Here is the Xcode that appears 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 are using Swift 3.

+5
source share
4 answers

, module.modulemap.

, :

Swift , module.modulemap , , .

hiccup , , .

- !:)

+2

Xcode. . , - , . , XCode, . print ("") .

+3

, Firebase, podfile

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%, )

  • Projekt Xcode ( )
  • (yourAppTests)
  • " " " "
  • " "
    • -ObjC
    • -framework
    • "GoogleToolboxForMac"
    • -framework
    • "nanopb"
+2
source

I had the same problem when I used Xcode 9. I spend 2 hours finding a solution, and someone suggested to me that I have to run my code on Xcode 10 (I still use the beta version of Xcode). It worked.

Hope this helps !!.

0
source

Source: https://habr.com/ru/post/1687259/


All Articles