firebase-unity-sdk: [Bug] "Undefined symbols:" on Xcode build

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2022.3.16f1
  • Firebase Unity SDK version: 11.6.0
  • Source you installed the SDK: . unitypackage
  • Problematic Firebase Component: FirebaseAnalytics
  • Other Firebase Components in use: Auth,Firestore,AppCheck
  • Additional SDKs you are using: pod install result:
Installing AppAuth (1.6.2)
Installing BoringSSL-GRPC (0.0.24)
Installing Firebase (10.15.0)
Installing FirebaseABTesting (10.19.0)
Installing FirebaseAnalytics (10.15.0)
Installing FirebaseAppCheckInterop (10.19.0)
Installing FirebaseAuth (10.15.0)
Installing FirebaseCore (10.15.0)
Installing FirebaseCoreExtension (10.19.0)
Installing FirebaseCoreInternal (10.19.0)
Installing FirebaseFirestore (10.15.0)
Installing FirebaseInstallations (10.19.0)
Installing FirebasePerformance (10.15.0)
Installing FirebaseRemoteConfig (10.19.0)
Installing FirebaseSessions (10.19.0)
Installing FirebaseSharedSwift (10.19.0)
Installing GTMAppAuth (2.0.0)
Installing GTMSessionFetcher (3.2.0)
Installing GoogleAppMeasurement (10.15.0)
Installing GoogleDataTransport (9.3.0)
Installing GoogleSignIn (7.0.0)
Installing GoogleUtilities (7.12.0)
Installing PromisesObjC (2.3.1)
Installing PromisesSwift (2.3.1)
Installing RecaptchaInterop (100.0.0)
Installing abseil (1.20220623.0)
Installing gRPC-C++ (1.50.1)
Installing gRPC-Core (1.50.1)
Installing leveldb-library (1.22.2)
Installing nanopb (2.30909.1)
  • Platform you are using the Unity editor on: M1 Mac
  • Platform you are targeting: iOS
  • Scripting Runtime: IL2CPP
  • Pre-built SDK from the website or open-source from this repo: _____

[REQUIRED] Please describe the issue here:

I successfully built Xcode from Build Settings window. When I try to run the app from Xcode, it fails with error.

Undefined symbols:
Linker command failed with exit code 1 (use -v to see invocation)

Weird thing is, usually there will be continuing comments after undefined symbols: , but it’s empty, so there is no way to know what is the actual undefined symbols.

I tried cleaning the build folder, deleting ModuleCache, pod deintegrate, deleting Podfile.lock, Pods folder, pod repo update, building from the Build Settings again. None of these worked.

Steps to reproduce:

  • Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? No. but I intend to try later.

  • What’s the issue repro rate? (eg 100%, 1/5 etc) 100%

  • What happened? How can we make the problem occur? This is the log: スクリーンショット 2023-12-27 13 20 59

I’m willing to share the minimum reproducible project.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 28 (1 by maintainers)

Most upvoted comments

@hsallander @georgemarkosian

I have made a separate Bug report for our woes because I understand that this particular bug ticket was opened 3 months ago on a slightly different error scenario (it maybe linked or it may not be idk) lets all have a cry there

https://github.com/firebase/firebase-unity-sdk/issues/974

Sorry this should have been closed with either 11.7.1 (which built against the new internal Pods) or 11.8.0, which is built against the current latest.

If you are still having a problem, it would be better to open a new issue, and include everything, especially the full error logs, and the Podfile.lock file.

Hey all, we haven’t been able to reliably reproduce this on our end, which is why it has taken a bit of time to find a solution or workaround.

For people that do have this problem, can you include your Podfile.lock? Our best guess is that it is somehow getting a version of absl that is incompatible with the library. Another thing that people can try is manually running pod repo update to see if that helps potentially pull in correct pods (assuming that is where the problem lies).

Thanks for the update @a-maurice . Here’s my Podfile.lock file (changed file extension to .txt in order to be able to upload it) Podfile.lock.txt