distriqt / ANE-GooglePlayServices

Shared library including the Google Play Services Client Library
https://airnativeextensions.com
18 stars 1 forks source link

Duplicate symbols in com.google.firebase.core #30

Closed marchbold closed 9 months ago

marchbold commented 9 months ago

I started to test a build that was compiling flawlessly with 50.2.3.5 before upgrading to last ANEs that was creating problems.

As Michoko92, I had the same issue with the vanilla 50.2.3.6: image

After replacing ld64, I get the following error: image

I don't know if I migrate to the last ANEs it would solve the problem. Maybe @marchbold knows more about it.

Originally posted by @marcanw in https://github.com/distriqt/ANE-GooglePlayServices/issues/28#issuecomment-1745651246

Mintonist commented 9 months ago

I have downloaded the lastest version com.google.firebase.core.ane but got the same error.

marchbold commented 9 months ago

Is it exactly the same? Can you clear all the caches in your ide to ensure you aren't using a cached version. The symbol has been removed from the latest release so the error definitely should be different if it is still occurring.

Mintonist commented 9 months ago

Yes, there is different error:

ld64: error: duplicate symbol: _distriqt_core_ctx >>> defined in Core.m:40 (Core\Core.m:40) >>> AppData\Local\Temp\3ca63786-dfcb-4ca0-ac22-0935ae14f9cd\libcom.distriqt.Core.a(Core.o) >>> defined in AppData\Local\Temp\3be7aa5c-7eae-4371-83fb-b43229bc4ae5\libcom.google.firebase.core.a(FirebaseCore.o) 

ld64: error: duplicate symbol: _distriqt_core_v >>> defined in Core.m:41 (Core\Core.m:41) >>> AppData\Local\Temp\3ca63786-dfcb-4ca0-ac22-0935ae14f9cd\libcom.distriqt.Core.a(Core.o) >>> defined in AppData\Local\Temp\3be7aa5c-7eae-4371-83fb-b43229bc4ae5\libcom.google.firebase.core.a(FirebaseCore.o) 

Compilation failed while executing : ld64

image

marchbold commented 9 months ago

Please double check that you have updated and cleared any cached versions. This symbol has been removed from the firebase ANE.

Mintonist commented 9 months ago
<id>com.google.firebase.core</id>
<versionNumber>32.1.106</versionNumber>

Yes, I use Inelij Idea, I manualy clear temp filders and restart IDE

marchbold commented 8 months ago

Can you try deleting the temp directory it's using? AppData\Local\Temp\3be7aa5c-7eae-4371-83fb-b43229bc4ae5

Those symbols definitely aren't in the lib.

Mintonist commented 8 months ago

Of course! You can see others temp pathes:

ld64: error: duplicate symbol: _distriqt_core_ctx >>> defined in Core.m:40 (Core\Core.m:40) >>> \AppData\Local\Temp\9814d0ff-d43f-49f0-b929-95f25f387351\libcom.distriqt.Core.a(Core.o) >>> defined in \AppData\Local\Temp\479e9327-8ed6-4dd1-81c4-aa1e438db413\libcom.google.firebase.core.a(FirebaseCore.o) 

ld64: error: duplicate symbol: _distriqt_core_v >>> defined in Core.m:41 (Core\Core.m:41) >>> \AppData\Local\Temp\9814d0ff-d43f-49f0-b929-95f25f387351\libcom.distriqt.Core.a(Core.o) >>> defined in \AppData\Local\Temp\479e9327-8ed6-4dd1-81c4-aa1e438db413\libcom.google.firebase.core.a(FirebaseCore.o) 

Compilation failed while executing : ld64
marchbold commented 8 months ago

Not sure what else to suggest, the symbol definitely has been removed from the current release. You don't have an old version somewhere in your build?

Mintonist commented 8 months ago

Is any chance that your local version is different from repo version?

Can you try build simple|test project on your side with ANE file from repo (https://github.com/distriqt/ANE-GooglePlayServices/blob/master/lib/com.google.firebase.core.ane)?

marchbold commented 8 months ago

If you are still having issues then it may be related to the AIR SDK, there appears to be an issue in the 50.2.3.6 with a new linker.

Try using this update that Harman is working on

https://transfer.harman.com/link/Brh2YO2NAELPL99TZbgimo

Mintonist commented 8 months ago

Thanks a lot! Yes, it has been solved with new linker