-
Notifications
You must be signed in to change notification settings - Fork 46
[Bug] "Undefined symbols:" on Xcode build #916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @ChurikiTenna, Are you using Xcode 15? Could you try if adding |
Thank you for your reply @paulinon . Yes. I am using Xcode 15. ![]() |
Hi @paulinon . Adding -ld_classic to the Other Linker Flags in Pods -> PROJECT -> Pods did not make any difference. Adding to PROJECT -> Unity-iPhone showed different errors. ![]() |
I am getting this exact same error and the same thing happened when I added the -Ld_classic flag |
@ChurikiTenna I have been unable to get any version of Firebase past 9.6 to work. I reverted back, and it worked. You might want to try 9.6 |
Same here. Tried on Unity 2022.3.20 and 2022.3.22, Firebase 11.6.0 and 11.8.0. FacebookUnitySDK and AppsFlyer SDKs are in the project as well. Classic linker doesn't help. Was compiling without any issue last week. I was able to get more details using the classic linked though: |
same here! Undefined symbol: absl::lts_20220623::variant_internal::ThrowBadVariantAccess() these same things! Due to some Xcode errors I understood that I had to update to 11.8 version and our older working commits has stopped building on Xcode all throwing the same errors :/ |
from my understanding the problem specifically comes from Firestore but the moment I use the Firestore namespace anywhere in code |
After some back and forth we figured out the only 2 ways to make our app compile:
None of those are livable as our app relies on both. While discovering it we tried different versions of xCode (15.0.1, 15.1, 15.2, 15.3) and Unity (2022.3.20, 2022.3.22). We also tried removing other plugins with native components (FacebookSDK, AppsFlyer, GoogleSignIn) - no difference. We also tested another app we have that works without Firebase, it's ok. We believe the issue lies in Firebase and hope it will be resolved soon. It affects our business as we can't produce builds and test the upcoming app update. Update 1: tried updating cocoaPods version to 10.23 => results in Undefined symbols errors. |
We're also having the same issue. Using Unity 2021.3.36, Xcode 15.2, macOS Ventura on an M1 Max. Firebase Unity SDK version 11.8.0 (have tried 11.6.0 as well but with the same results). Firebase installed using the Package Manager (tgz-files), using the following packages:
Side note: Firebase 11.6.0 did work for us when we where on Unity 2021.3.21, but after upgrading to 2021.3.36 we get this error and are unable to build for iOS. |
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) |
Sorry for being absent. Couldn't find what exactly was causing the error, but I guess some kind of caches were doing weird stuff. |
@ChurikiTenna thanks for getting back. |
Thanks for the update. How do you mean creating a new folder fixed the issue? I've tried clearing the cocoapods cache and reintegrating the pods but still get the same error. Or do you mean reimporting all the way down to Unity, like deleting the Library and reimporting before doing the build? |
FYI: Faced the same or similar issue, found a fix for our case, see #975 (didnt see this post when starting to write that one) |
Hi We are facing the same issue as below: We received an email from Apple requesting builds using the iOS 17 SDK or later (due date mid-April), so we proceeded accordingly. However, after upgrading to MacOS Sonoma 14.4 and Xcode 15.3, we encountered several crashes on devices running iOS 17.3 and 17.4. To address this issue, we upgraded to Firebase SDK version 11.8.0, previously we were using version 11.6.0. Initially, this resolved the issue, and we were able to successfully build for a couple of days. However, today, when attempting to create another build, we encountered the attached errors and are unable to proceed further with the build process. We attempted to downgrade to version 11.7.0, but encountered the same error with that version as well. Would you please give advice or help in getting out of this? it impact our business. |
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. |
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) |
Hello all, We are facing the same issue. Updated all the .tgz files to 11.8.1 and then 11.9.0. To no help so far. I see this issue is still open though the thread has been so long. Is there any tested way to solve it? Any steps we could try? |
@aryansaurav do a pod install verbose and have a look at the versions of all the firebase modules being installed. |
@providence94 Thanks for your response. The issue is not coming from Facebook SDK. The Firebase modules in pod install verbose log are different, some 10.22.0 some 10.24.0.. Do I need to enforce all of them to have the same version? Some, for example, FirestoreInternal are not in the Podfile by default. They install 10.24.0 by default. I wonder if someone has already tried enforcing same version for all firebase modules and succeeded that way. And which version worked for them? 10.24.0 or 10.22.0 or something else |
if you fetch the latest version of firebase sdk this issue should be
resolved. if you for some reason have to stick to this version have a look
at the relevant scripts posted somewhere here which forces the same version to all dependencies. this issue was in firebase 11.8. i had opened a ticket
regarding this and got it resolved
…On Mon, 29 Apr 2024 at 9:47 PM, aryansaurav ***@***.***> wrote:
@providence94 <https://github.com/providence94> Thanks for your response.
The issue is not coming from Facebook SDK.
The Firebase modules in pod install verbose log are different, some
10.22.0 some 10.24.0.. Do I need to enforce all of them to have the same
version? Some, for example, FirestoreInternal are not in the Podfile by
default. They install 10.24.0 by default.
I wonder if someone has already tried enforcing same version for all
firebase modules and succeeded that way. And which version worked for them?
10.24.0 or 10.22.0 or something else
—
Reply to this email directly, view it on GitHub
<#916 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNAVITPIOGUP3ZEIY5FE7LY7ZXAPAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGE2DQMRTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks again. I tried with the latest release 11.9. Did the fresh build,
cleaned the library folder too. Nothing seems to help though
Just a month ago it worked with an older version of firebase 11.7 and unity
Wondered if you can share your unity version and x code version, other
system configuration?
On Mon, Apr 29, 2024, 18:26 Ashwin Shanker G ***@***.***>
wrote:
… if you fetch the latest version of firebase sdk this issue should be
resolved. if you for some reason have to stick to this version have a look
at the relevant scripts posted somewhere here. i had opened a ticket
regarding this and got it resolved
Best Regards,
Ashwin Shanker G :)
On Mon, 29 Apr 2024 at 9:47 PM, aryansaurav ***@***.***>
wrote:
> @providence94 <https://github.com/providence94> Thanks for your
response.
> The issue is not coming from Facebook SDK.
>
> The Firebase modules in pod install verbose log are different, some
> 10.22.0 some 10.24.0.. Do I need to enforce all of them to have the same
> version? Some, for example, FirestoreInternal are not in the Podfile by
> default. They install 10.24.0 by default.
>
> I wonder if someone has already tried enforcing same version for all
> firebase modules and succeeded that way. And which version worked for
them?
> 10.24.0 or 10.22.0 or something else
>
> —
> Reply to this email directly, view it on GitHub
> <
#916 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ACNAVITPIOGUP3ZEIY5FE7LY7ZXAPAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGE2DQMRTGI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#916 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKVC2DF2VFIXZOBGBBDX5MLY7ZYCFAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGE3DMMJZGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
then use the scripts to force the version number.
even on 11.9 your pod versions are different?
then something’s definitely wrong.
check this whole thread
#974
On Tue, 30 Apr 2024 at 2:00 AM, aryansaurav ***@***.***>
wrote:
… Thanks again. I tried with the latest release 11.9. Did the fresh build,
cleaned the library folder too. Nothing seems to help though
Just a month ago it worked with an older version of firebase 11.7 and
unity
Wondered if you can share your unity version and x code version, other
system configuration?
On Mon, Apr 29, 2024, 18:26 Ashwin Shanker G ***@***.***>
wrote:
> if you fetch the latest version of firebase sdk this issue should be
> resolved. if you for some reason have to stick to this version have a
look
> at the relevant scripts posted somewhere here. i had opened a ticket
> regarding this and got it resolved
>
> Best Regards,
> Ashwin Shanker G :)
>
>
> On Mon, 29 Apr 2024 at 9:47 PM, aryansaurav ***@***.***>
> wrote:
>
> > @providence94 <https://github.com/providence94> Thanks for your
> response.
> > The issue is not coming from Facebook SDK.
> >
> > The Firebase modules in pod install verbose log are different, some
> > 10.22.0 some 10.24.0.. Do I need to enforce all of them to have the
same
> > version? Some, for example, FirestoreInternal are not in the Podfile
by
> > default. They install 10.24.0 by default.
> >
> > I wonder if someone has already tried enforcing same version for all
> > firebase modules and succeeded that way. And which version worked for
> them?
> > 10.24.0 or 10.22.0 or something else
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#916 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ACNAVITPIOGUP3ZEIY5FE7LY7ZXAPAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGE2DQMRTGI>
>
> > .
> > You are receiving this because you were mentioned.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#916 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AKVC2DF2VFIXZOBGBBDX5MLY7ZYCFAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGE3DMMJZGQ>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#916 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNAVIRPRHEH77OO6LRVVULY72UW5AVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGYYDQNRRHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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. |
With the 11.9, the versions are same in the Podfile. Still that does not
fix the undefined symbol error
I'm suspecting if that fixed the issue for you, it's mostly due to the
unity version and x code version you're using
On Mon, Apr 29, 2024, 22:34 Ashwin Shanker G ***@***.***>
wrote:
… then use the scripts to force the version number.
even on 11.9 your pod versions are different?
then something’s definitely wrong.
check this whole thread
#974
On Tue, 30 Apr 2024 at 2:00 AM, aryansaurav ***@***.***>
wrote:
> Thanks again. I tried with the latest release 11.9. Did the fresh build,
> cleaned the library folder too. Nothing seems to help though
>
> Just a month ago it worked with an older version of firebase 11.7 and
> unity
>
> Wondered if you can share your unity version and x code version, other
> system configuration?
>
> On Mon, Apr 29, 2024, 18:26 Ashwin Shanker G ***@***.***>
> wrote:
>
> > if you fetch the latest version of firebase sdk this issue should be
> > resolved. if you for some reason have to stick to this version have a
> look
> > at the relevant scripts posted somewhere here. i had opened a ticket
> > regarding this and got it resolved
> >
> > Best Regards,
> > Ashwin Shanker G :)
> >
> >
> > On Mon, 29 Apr 2024 at 9:47 PM, aryansaurav ***@***.***>
> > wrote:
> >
> > > @providence94 <https://github.com/providence94> Thanks for your
> > response.
> > > The issue is not coming from Facebook SDK.
> > >
> > > The Firebase modules in pod install verbose log are different, some
> > > 10.22.0 some 10.24.0.. Do I need to enforce all of them to have the
> same
> > > version? Some, for example, FirestoreInternal are not in the Podfile
> by
> > > default. They install 10.24.0 by default.
> > >
> > > I wonder if someone has already tried enforcing same version for all
> > > firebase modules and succeeded that way. And which version worked
for
> > them?
> > > 10.24.0 or 10.22.0 or something else
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
>
#916 (comment)>,
>
> >
> > > or unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/ACNAVITPIOGUP3ZEIY5FE7LY7ZXAPAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGE2DQMRTGI>
>
> >
> > > .
> > > You are receiving this because you were mentioned.Message ID:
> > > ***@***.***>
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#916 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AKVC2DF2VFIXZOBGBBDX5MLY7ZYCFAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGE3DMMJZGQ>
>
> > .
> > You are receiving this because you were mentioned.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#916 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ACNAVIRPRHEH77OO6LRVVULY72UW5AVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGYYDQNRRHE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#916 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKVC2DD67URLNHP3CNIZAX3Y72VGJAVCNFSM6AAAAABBD5DQIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGYYTKMJSHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
[REQUIRED] Please fill in the following fields:
pod install result:
[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.
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:
I'm willing to share the minimum reproducible project.
The text was updated successfully, but these errors were encountered: