I'm not sure how, but I managed to install version 1.8.4
of cocoapods. However, I can't update it. I need to update it because the pods for the firebase google sign in require FirebaseAnalytics
, and Firebase Analytics
requires cocoapods to be 1.10.0. Whenever I try to update it, either by simply sudo gem install cocoapods
or sudo gem update cocoapods
, I get the following error:
The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first.
This is odd because I do in fact have xcode developer tools installed.
And here are the pods (one of which requires FirebaseAnalytics
)
Also see the error message:
This question is similar to several others--I'm asking a new question because the answers to those questions didn't help me and the questions were fairly old, so I doubt I'll get any help there.
I greatly appreciate your help. This problem alone is stopping me from using Firebase's google sign in in my application.
EDIT:
After I re-installed cocoapods
with brew
I checked my pod version, only to find that it was still 1.8.4. I then ran brew upgrade cocoapods
and everything seemingly looked up to date. But I checked the version once more and am still seeing 1.8.4. What is going on here?
EDIT 2: bundle result
I was able to successfully (seemingly) install bundle, but I'm getting errors when I try to use bundle to install / update cocoapods.
EDIT 3: Solution Found?
I tried upgrading cocoapods again with brew, and for some reason it worked this time--even though last time I tried upgrading cocoapods with brew it didn't work. (Did bundle help?) I still have yet to see if this solves my original problem, but cocoapods is now version 1.11.2
, the newest version. Thanks for all the help!