quickstart-unity: “CocoaPods installation failure” in Unity iOS build

Step 0: Are you in the right place?

Hey Guys, could you please help, this issue is preventing me releasing my app.

Are there some unique steps for using CocoaPods with firebase in Unity?

After adding firebase to my unity project, my iOS version fails to build with the following error:

"iOS framework addition failed due to a CocoaPods installation failure. This will likely result in an non–functional Xcode project.“

Here’s what I have tried:

  • uninstall/reinstall CocoaPods
  • Use .xcworkspace file instead of .xcodeproj
  • I follow the steps on the firebase website: https://firebase.google.com/docs/ios/setup However these steps make 2 broad assumptions, 1.You are using Xcode (I’m using visual studio, unity generates an Xcode project on build). 2.You are using swift/Objective-c. My source code are unity scripts in C#
  • Upgrade to latest version of firebase -reimported the “.json” and “.plist” file
  • I also deleted the generated podfile

I have posted all this on stack overflow and have been speaking to an android guy: https://stackoverflow.com/questions/66207748/cocoapods-installation-failure-in-unity-ios-build

Note I had already logged the issue with firebase on Feb 15. Still waiting 😉 Case 00115654

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 12.2
  • Firebase SDK version: 7.1
  • Installation method: CocoaPods (select one)
  • Firebase Component: (Auth)
  • Unity 2019.4.13f1
  • Visual studio for Mac 8.7.3

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

  • Simply make an iOS build with the aforementioned setup

Relevant Code:

// TODO NA

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 45 (14 by maintainers)

Most upvoted comments

We have the same problem. When will it be updated?