-
Notifications
You must be signed in to change notification settings - Fork 88
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
Arcore depends on Firebase, then duplicate symbols in iOS app that use Firebase too #95
Comments
Are you building with Cocoapods or Swift Package Manager? |
I have tried many .. I mean only SPM , only pod , mixed and many combination ... at first the problem comes at compile time,but I was able to solve , but then crash appears at runtime ... if I remove Firebase from my app everything works if Firebase is used on my app Xcode console show errors like this....
then
finally it crash
I have to add that in the log above you see UnityFramework that in turn link Arcore ... but this is not the point ... I have tried also to use Arcore by itself in my app , removing UnityFramework , but duplicated symbols or "class implemented in both module" remain the same |
When building on iOS with Unity, Cocoapods is the only supported build system. ARCore has a dependency on Firebase, so if using another Firebase target, it will need to be correctly included in the Podfile, otherwise duplicate symbols will occur. Other methods of bundling won't work. What errors do you get when including the Firebase target via the Podfile? |
thank you for suggestion , I think I have already tried but I will retry to be sure and to report result... so , as you know , when you get the iOS export from Unity+ ARCore it setup the podfile as follow:
|
Yes, so in the generated podfile you would need to add you something like I'm not familiar with "Unity as library", but it may be worth trying without that feature as well. |
It's not possibile to add MyApp target in the unity generated pod . I suppose that Arcore primary goal is not to be used in a Unity module that have to integrate within another iOS app , but that was working until you do not use Arcore on Unity side,and now seems to be broken By the way , I'm evaluating to move to iOS native Arcore integration as for GeoSpatial example , but that would be the last option , only if not other solution available |
If I understand these docs correctly, I can see why this might result in duplicate symbols. Although you run pod install on the generated project, it seems like the binary from that project is just directly copied over, meaning it would not be managed by Cocoapods in the host project, resulting in duplicate symbols. I suppose you could try to add the other Firebase target in the generated Unity project and remove it from the host app, but that may not even work. In this case using the native API's might be easier. |
To me, the fact that Arcore is an umbrella framework to Firebase makes it unusable by iOS app that also uses Firebase , because of duplicate symbols .
Does anyone knows an effective solution for that ?
The text was updated successfully, but these errors were encountered: