Linker command failed with exit code 1 after installing CocoaPods and firebase pod

84,943

Solution 1

I got stuck for awhile trying to solve this, but the solution turned out to be very easy :)
If you are using Cocoapods in your project, one needs to use xcworkspace to build instead of xcproject. If you are using Cocoapods and build from  xcproject , it will ignore the Cocoapods libraries you need.

Solution 2

Sometimes its because of you might be declaring an object with same variable name.

Clear the repeating variable name change it. After that clean your project and build again. Its worked for me....! Thanks.

Solution 3

I faced the same problem for hours and solved it with a simple hack. Just do clean and then Build

Solution 4

This error will also trigger when several components (files) with identical names were added to Xcode workspace.

Renaming them will fix this error.

Solution 5

A bit late, but what did the trick for me were cmd + q xcode, navigate to project folder, pod update, reopen open the .xcworkspace file, clean project and run/build again.

Share:
84,943
bob
Author by

bob

Updated on November 03, 2020

Comments

  • bob
    bob over 3 years

    I'm trying to use the firebase pod, however getting this (see image) error message when a run is attempted.

    I followed this guide to install Cocoapods and added the firebase dependency to the Podfile.

    p.s I tried to clean it a bunch of times.

    enter image description here