firebaseswift3xcode8ios10

Error: Could not build Objective-C module 'Firebase'


When I compile the application I get an error equal to this:

Could not build Objective-C module 'Firebase'

This error appear in import Firebase of my file swift.


Solution

  • There is only one way to solve this issue.

    1. Quit Xcode.
    2. Delete project's temp files located at ~/Library/Developer/Xcode/DerivedData
    3. Delete ProjectName.xcworkspace
    4. Delete Podfile.lock file and Pods folder
    5. Run pod install.
    6. Open the newly created ProjectName.xcworkspace file and build.