firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
226 stars 37 forks source link

[Bug] Undefined symbol: _SWIG_csharp_string_size, _SWIG_csharp_string_str, _SWIG_csharp_string_to_c #1139

Open gokhancnr opened 4 hours ago

gokhancnr commented 4 hours ago

Description

I've upgraded my Unity(6000.0.25f1) Projects's Firebase SDK to 11.4.0

When I try to Archieve to distribute it it gives me error:

image

When I searched for:

- _SWIG_csharp_string_size - _SWIG_csharp_string_str - _SWIG_csharp_string_to_c

they are all used by Firebase products:

image

What I've tried:

Reproducing the issue

No response

Firebase Unity SDK Version

12.4.0

Unity editor version

6000.0.25f1

Installation Method

.unitypackage

Problematic Firebase Component(s)

Analytics, Crashlytics, Messaging, Remote Config

Other Firebase Component(s) in use

No response

Additional SDKs you are using

AdMob

Targeted Platform(s)

Apple Platforms

Unity editor platform

Mac

Scripting Runtime

IL2CPP

Release Distribution Type

Pre-built SDK from https://firebase.google.com/download/unity

Relevant Log Output

Undefined symbols for architecture arm64:
  "_SWIG_csharp_string_size", referenced from:
      _SWIGStringWithLengthHelper_SWIG_csharp_string_size_m8F346145417F2C9491498D803A31784BD19013D7 in libGameAssembly.a[22](vu34smn0bqak.o)
      _SWIGStringWithLengthHelper_SWIG_c_to_csharp_string_mE1E23481DA0D5785F7A93B2E2198C097C57B3D5C in libGameAssembly.a[22](vu34smn0bqak.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_size_m16FB33E0B820555284400210117E7A8A52B532FA in libGameAssembly.a[23](mz5zwj743dgj.o)
      _SWIGStringWithLengthHelper_SWIG_c_to_csharp_string_m84428208EED10043F30F6C512792615AE2FAC037 in libGameAssembly.a[23](mz5zwj743dgj.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_size_m1948ACEBEE67E05211F90DE17590914433C663CE in libGameAssembly.a[25](q0ur51tkyt20.o)
      _SWIGStringWithLengthHelper_SWIG_c_to_csharp_string_mC21BFB1DCB3E5CD72C79A7899554A8182198C5CF in libGameAssembly.a[25](q0ur51tkyt20.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_size_m424013BA371C1172D562D03620F1633DB2259C20 in libGameAssembly.a[26](xt9xt4swnlqe.o)
      ...
  "_SWIG_csharp_string_str", referenced from:
      _SWIGStringWithLengthHelper_SWIG_csharp_string_str_m2D07EC24FFFF0DDD94E1F45C362A788592713A3A in libGameAssembly.a[22](vu34smn0bqak.o)
      _SWIGStringWithLengthHelper_SWIG_c_to_csharp_string_mE1E23481DA0D5785F7A93B2E2198C097C57B3D5C in libGameAssembly.a[22](vu34smn0bqak.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_str_m83F8D0FCAAA6F3D1AC73C859088E835E8D9184FF in libGameAssembly.a[23](mz5zwj743dgj.o)
      _SWIGStringWithLengthHelper_SWIG_c_to_csharp_string_m84428208EED10043F30F6C512792615AE2FAC037 in libGameAssembly.a[23](mz5zwj743dgj.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_str_m6D6B1401557AB973D33F49254FCCB69A4C94065D in libGameAssembly.a[25](q0ur51tkyt20.o)
      _SWIGStringWithLengthHelper_SWIG_c_to_csharp_string_mC21BFB1DCB3E5CD72C79A7899554A8182198C5CF in libGameAssembly.a[25](q0ur51tkyt20.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_str_mE8CC0F094D3082710D19C93A28A2C3CF8297B371 in libGameAssembly.a[26](xt9xt4swnlqe.o)
      ...
  "_SWIG_csharp_string_to_c", referenced from:
      _SWIGStringWithLengthHelper_SWIG_csharp_string_to_c0_mFE6E5675C210B8A012509DFC8D1733ED4BFF08B3 in libGameAssembly.a[22](vu34smn0bqak.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_to_c_m8215BCAC3D160AF742FDBFAE9C3721158B1C1847 in libGameAssembly.a[22](vu34smn0bqak.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_to_c0_m4748CBC22A07C4460FCE76182618154259A699AB in libGameAssembly.a[23](mz5zwj743dgj.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_to_c_m987FC6537DCF628964F5623A836D12D2D153A61D in libGameAssembly.a[23](mz5zwj743dgj.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_to_c0_mBFE7B39ECD66FBAC7F413F646B7537DF0736DBB7 in libGameAssembly.a[25](q0ur51tkyt20.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_to_c_m04B714FEF399DC258EA140985995ED2B51EB5550 in libGameAssembly.a[25](q0ur51tkyt20.o)
      _SWIGStringWithLengthHelper_SWIG_csharp_string_to_c0_m0C29778A973671B9CA23102557968D5372D9B948 in libGameAssembly.a[26](xt9xt4swnlqe.o)
      ...
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

If using CocoaPods for Apple platforms, the project's Podfile.lock

Expand Podfile.lock snippet
```yml 👀 Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 4 hours ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.