9

I am getting the following error

ld: framework not found FirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried all the things, like cleaning, reintegrating and updating and installing the PODS, nothing seems to work. Please help. Here is my PODFILE. I have been struggling for the past 2 weeks with this crazy thing

target 'MyProject' do
 use_modular_headers!
 # use_frameworks!
 pod 'GoogleMaps'
 pod 'GooglePlaces'
 pod 'Alamofire'
 pod 'SwiftyJSON' 
 pod 'SwiftKeychainWrapper'
 pod 'FBSDKCoreKit', '4.35'
 pod 'FBSDKShareKit', '4.35'
 pod 'FBSDKLoginKit', '4.35'
 pod 'GoogleSignIn'
 pod 'Firebase/Core'
 pod 'Firebase/Auth'
 pod 'Firebase/Database'
 pod 'Firebase/Storage'
 pod 'Firebase/Crash'
 pod 'FirebaseStorageCache'
end
asked Sep 3, 2018 at 15:46
13
  • 1
    And that's the only framework that's not being found out of the entire list of frameworks there? You're using xcworkspace to build right? Commented Sep 3, 2018 at 16:13
  • yes thats right..thats the only one that is giving this error. while I can clearly see it in the Xcode Pods project Commented Sep 3, 2018 at 16:18
  • Okay, try to go through (or simply click on) each FirebaseCore file in Pods. Then try to build again (for some reason, this works sometimes). If it doesn't work, clean then build again and eventually restart Xcode Commented Sep 3, 2018 at 16:23
  • I tried this..no use. It still shows the same error :-( Commented Sep 3, 2018 at 23:52
  • 1
    I tried that I get the following error, when I do pod install "target has transitive dependencies that include static frameworks: (FirebaseAuth, FirebaseCore, FirebaseDatabase, and FirebaseStorage)" Commented Sep 12, 2018 at 14:23

2 Answers 2

1

If you look at the workspace in Xcode but cannot drill into the project from there then your issue is that your workspace is not opening properly. There should be an expand arrow next to the project name in the workspace explorer. In my case it was because the Project file was being opened by Xcode first before it was opening the Workspace. Since the project was already in use it could not be used again by the workspace. There is no appropriate error message to alert you to this situation.

To fix:

  1. Open xcode
  2. Close all projects and workspaces
  3. Close Xcode (Now the next time you open Xcode it will not open your old project first by default)
  4. Open the Workspace file

Now you should be able to drill into your Xcode project from within your workspace.

I wrestled with this problem as a noob to CocoaPods and Analytics and working with Workspaces. I had added CocoaPods and Firebase to an existing application that had not used CocoaPods before. Once you add CocoaPods you should only ever open the Xcode project through the Workspace.

FWIW: I found this link useful to understand what was going on: Xcode Project vs. Xcode Workspace - Differences

answered Aug 22, 2019 at 17:22
Sign up to request clarification or add additional context in comments.

Comments

-1

Try it to do by Changing the deployment target to iOS 11. It worked for me.

answered Sep 26, 2019 at 11:39

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.