Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 772
bob Avatar asked Sep 08 '17 11:09

bob


3 Answers

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.

like image 135
Hamid Hoseini Avatar answered Nov 16 '22 03:11

Hamid Hoseini


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.

like image 29
Sukendh Avatar answered Nov 16 '22 01:11

Sukendh


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

like image 4
Vincent Mungai Avatar answered Nov 16 '22 02:11

Vincent Mungai