Hi, so I’m trying to integrate Firebase into Unity. The official SDK doesn’t work with cloud build. So I’ve resorted to using these libraries:
https://github.com/step-up-labs/firebase-authentication-dotnet
I’m targeting IOS.
Using Unity 2017.1b6
Now the above libraries don’t work directly in 2017.1, I think because of some .NetStandard thing. Anyway… I cloned the repos, dumped the code in Unity, removed unnecessary classes etc.
My test runs fun in the Editor. I can download my DB, all good. However, cloud build complains:
1890: [Unity] AmbiguousMatchException: Ambiguous match found.
1891: [Unity] at UnityEditor.CloudBuild.UnityReflector.TryLoadMethodInfo (System.Reflection.Assembly assembly, System.String fullName, System.Reflection.BindingFlags flags, System.Reflection.MethodInfo& methodInfo, System.Type[] types) [0x0003d] in <2c89a24bfae14f1f8eba59b377c83874>:0
1892: [Unity] at UnityEditor.CloudBuild.UnityReflector..cctor () [0x00185] in <2c89a24bfae14f1f8eba59b377c83874>:0
1893: [Unity] Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.CloudBuild.UnityReflector' threw an exception.
1894: [Unity] at UnityEditor.CloudBuild.Builder.DisableAutoLightbake () [0x00053] in <2c89a24bfae14f1f8eba59b377c83874>:0
1895: [Unity] at UnityEditor.CloudBuild.Builder.Build () [0x00005] in <2c89a24bfae14f1f8eba59b377c83874>:0
1896: [Unity] executeMethod method UnityEditor.CloudBuild.Builder.Build threw exception.
1897: [Unity] Aborting batchmode due to failure:
1898: [Unity] executeMethod method UnityEditor.CloudBuild.Builder.Build threw exception.
1899: ! Unity player export failed!
I’m not sure why the exception is happening at “DisableAutoLightbake”, but I’m assuming that’s where it’s coming from. Could there be some kindof conflict here? Because I’m dealing with 3rd party libraries, I can’t exactly nail down where an Ambiguous method might exist.
Even without adding any scenes to the build, I still get the errors. And I have all “Auto Bake Lights” off, even all light settings off
Any ideas what might cause this? Or how I can track down an offending method, if any?
I think I’ve aged 20 years in the last week trying to integrate Firebase into Unity for iOS. It is the single most painful experience as I developer I’ve ever had. Maybe if UCB had cocoapods it would be fine. But it doesn’t and probably never will ![]()
Appreciate any help I can get.
Thanks.
