Unity editor version: 2018.4.18f1
Firebase Unity SDK version: 6.11 eap
Firebase plugins in use (Auth, Database, etc.): Auth RTDB FireStore Analytics CrashLytics
Additional SDKs you are using (Facebook, AdMob, etc.): Facebook Admob VoxelBusters
Platform you are using the Unity editor on (Mac, Windows, or Linux): Mac
Platform you are targeting (iOS, Android, and/or desktop): iOS
Scripting Runtime (Mono, and/or IL2CPP): IL2CPP
Update firebase from 6.10 to 6.11 eap cause error
[Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
[Unity] UnityEditor.CloudBuild.Builder:Build()
[Unity] (Filename: Z Line: 0)
[Unity] Uploading Crash Report
[Unity] EXCEPTION: ArgumentNullException: Value cannot be null.
[Unity] Parameter name: path1
[Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
[Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
[Unity] UnityEngine.Logger:Log(LogType, Object)
[Unity] UnityEngine.Debug:Log(Object)
[Unity] UnityEditor.CloudBuild.BuildLogger:Log(String)
[Unity] UnityEditor.CloudBuild.BuildLogger:HighlightUnityErrors(String, String, LogType)
[Unity] UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
[Unity] UnityEngine.DebugLogHandler:LogException(Exception, Object)
[Unity] UnityEngine.Logger:LogException(Exception, Object)
[Unity] UnityEngine.Debug:LogException(Exception)
[Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
[Unity] UnityEditor.CloudBuild.Builder:Build()
[Unity] ArgumentNullException: Value cannot be null.
[Unity] Parameter name: path1
[Unity] at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <e1319b7195c343e79b385cd3aa43f5dc>:0
[Unity] at Firebase.Editor.XcodeProjectModifier.ReadPList (System.String relFilePath) [0x00000] in Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:179
[Unity] at Firebase.Editor.XcodeProjectModifier..ctor (System.String xcodeProjDir) [0x00052] in Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:92
[Unity] at Firebase.Editor.XcodeProjectModifier.PostProcessBuild (UnityEditor.BuildTarget buildTarget, System.String pathToBuiltProject) [0x0007c] in Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:159
[Unity] at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
[Unity] at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <e1319b7195c343e79b385cd3aa43f5dc>:0
[Unity] Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
[Unity] at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <e1319b7195c343e79b385cd3aa43f5dc>:0
[Unity] at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <e1319b7195c343e79b385cd3aa43f5dc>:0
[Unity] UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
[Unity] UnityEngine.DebugLogHandler:LogException(Exception, Object)
[Unity] UnityEngine.Logger:LogException(Exception, Object)
[Unity] UnityEngine.Debug:LogException(Exception)
[Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
[Unity] UnityEditor.CloudBuild.Builder:Build()
[Unity] (Filename: <e1319b7195c343e79b385cd3aa43f5dc> Line: 0)
[Unity] Reading iOS dependency XML file Assets/FacebookSDK/Plugins/Editor/Dependencies.xml
[Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
[Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
[Unity] UnityEngine.Logger:Log(LogType, Object)
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
Not sure.
What's the issue repro rate? (eg 100%, 1/5 etc) : 100%
Above is the log from cloud build but local macos face similar error
@stewartmiles @wilhuff Sorry to bother you but do you have any idea about this error?
And could it possible to release firebase editor dll as source code instead?
Confirming that, with the exact same code, I need to revert whole firebase's folder back to 6.10 so it could be built for ios. And firestore still work properly in ios
So currently now I need to split build branch, one for ios still use 6.10 and one for editor and android using 6.11
@Thaina could you share the logs leading up to this? It looks like the Xcode project directory couldn't be determined by a new part of the editor plugin that isn't in the public release.
Also note that Firebase 6.11 for iOS includes a new dependency and this requires Project ID, App ID, and API Key to be a part of your GoogleService-Info.plist. If you redownload the GoogleService-Info.plist this may go away. (Note that this isn't a Firestore specific issue; the non-EAP 6.11 would face the same problem--if this is indeed the cause).
@stewartmiles
10745: [Unity] DisplayProgressbar: Compiling shader variants
10746: [Unity] DisplayProgressbar: Building Player
10747: [Unity] DisplayProgressbar: Fetching assembly references
10748: [Unity] DisplayProgressbar: Building Player
10749: [Unity] UserBlackList: /BUILD_PATH/mycompany.new-unity-project.default-ios/Assets/link.xml
10750: [Unity] UserBlackList: /BUILD_PATH/mycompany.new-unity-project.default-ios/Assets/FacebookSDK/link.xml
10751: [Unity] UserBlackList: /BUILD_PATH/mycompany.new-unity-project.default-ios/Assets/Firebase/Plugins/Crashlytics/link.xml
10752: [Unity] UserBlackList: /BUILD_PATH/mycompany.new-unity-project.default-ios/Assets/JsonDotNet/link.xml
10753: [Unity] UserBlackList: /BUILD_PATH/mycompany.new-unity-project.default-ios/Assets/Standard Assets/VoxelBusters/NativePlugins/link.xml
10754: [Unity] /UNITY_PATH/Unity/macos/published/Unity-2018_4_17f1/Unity.app/Contents/il2cpp/build/UnityLinker.exe exited after 12550 ms.
10755: [Unity] /UNITY_PATH/Unity/macos/published/Unity-2018_4_17f1/Unity.app/Contents/Tools/InternalCallRegistrationWriter/InternalCallRegistrationWriter.exe exited after 611 ms.
10756: [Unity] DisplayProgressbar: Fetching assembly references
10757: [Unity] DisplayProgressbar: Building Player
10758: [Unity] Invoking il2cpp with arguments: --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --map-file-parser="/UNITY_PATH/Unity/macos/published/Unity-2018_4_17f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/BUILD_PATH/mycompany.new-unity-project.default-ios/Temp/StagingArea/Data/Managed" --generatedcppdir="/BUILD_PATH/mycompany.new-unity-project.default-ios/Temp/il2cppOutput/il2cppOutput"
10759: [Unity] /UNITY_PATH/Unity/macos/published/Unity-2018_4_17f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll exited after 197737 ms.
10760: [Unity] Unknown file extension: .so
10761: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10762: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10763: [Unity] UnityEngine.Logger:Log(LogType, Object)
10764: [Unity] UnityEngine.Debug:LogWarning(Object)
10765: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10766: [Unity] UnityEditor.CloudBuild.Builder:Build()
10767: [Unity] Unknown file extension: .xml
10768: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10769: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10770: [Unity] UnityEngine.Logger:Log(LogType, Object)
10771: [Unity] UnityEngine.Debug:LogWarning(Object)
10772: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10773: [Unity] UnityEditor.CloudBuild.Builder:Build()
10774: [Unity] Unknown file extension: .meta
10775: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10776: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10777: [Unity] UnityEngine.Logger:Log(LogType, Object)
10778: [Unity] UnityEngine.Debug:LogWarning(Object)
10779: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10780: [Unity] UnityEditor.CloudBuild.Builder:Build()
10781: [Unity] Unknown file extension: .properties
10782: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10783: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10784: [Unity] UnityEngine.Logger:Log(LogType, Object)
10785: [Unity] UnityEngine.Debug:LogWarning(Object)
10786: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10787: [Unity] UnityEditor.CloudBuild.Builder:Build()
10788: [Unity] Unknown file extension: .meta
10789: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10790: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10791: [Unity] UnityEngine.Logger:Log(LogType, Object)
10792: [Unity] UnityEngine.Debug:LogWarning(Object)
10793: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10794: [Unity] UnityEditor.CloudBuild.Builder:Build()
10795: [Unity] Splash screen images not provided: Mobile Splash Screen*, iPhone 3.5''/Retina, iPhone 4''/Retina, iPhone 4.7''/Retina, iPhone 5.5''/Retina, iPhone X /Retina, iPad Portrait, iPad Portrait/Retina
10796: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10797: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10798: [Unity] UnityEngine.Logger:Log(LogType, Object)
10799: [Unity] UnityEngine.Debug:LogWarning(Object)
10800: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10801: [Unity] UnityEditor.CloudBuild.Builder:Build()
10802: [Unity] [PostProcessBuild] : ModifyInfoPlist : /BUILD_PATH/mycompany.new-unity-project.default-ios/temp20200304-3773-1s9il9c
10803: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10804: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10805: [Unity] UnityEngine.Logger:Log(LogType, Object)
10806: [Unity] UnityEngine.Debug:Log(Object)
10807: [Unity] VoxelBusters.NativePlugins.PostProcessBuild:UpdateInfoPlist(String) (at Assets/Standard Assets/VoxelBusters/NativePlugins/Editor/PostProcessBuild.cs:277)
10808: [Unity] VoxelBusters.NativePlugins.PostProcessBuild:ExecutePostProcessAction(String) (at Assets/Standard Assets/VoxelBusters/NativePlugins/Editor/PostProcessBuild.cs:110)
10809: [Unity] VoxelBusters.NativePlugins.PostProcessBuild:OnPostProcessBuildActionStart(BuildTarget, String) (at Assets/Standard Assets/VoxelBusters/NativePlugins/Editor/PostProcessBuild.cs:75)
10810: [Unity] System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
10811: [Unity] System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
10812: [Unity] System.Reflection.MethodBase:Invoke(Object, Object[])
10813: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10814: [Unity] UnityEditor.CloudBuild.Builder:Build()
10815: [Unity] (Filename: Assets/Standard Assets/VoxelBusters/NativePlugins/Editor/PostProcessBuild.cs Line: 277)
10816: [Unity] [XcodeProjectModifier] Loading Xcode project '/BUILD_PATH/mycompany.new-unity-project.default-ios/temp20200304-3773-1s9il9c'.
10817: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10818: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10819: [Unity] UnityEngine.Logger:Log(LogType, Object)
10820: [Unity] UnityEngine.Debug:Log(Object)
10821: [Unity] Google.Logger:Log(String, LogLevel) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs:115)
10822: [Unity] Firebase.Editor.CategoryLogger:LogDebug(String, Object[]) (at Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\CategoryLogger.cs:35)
10823: [Unity] Firebase.Editor.XcodeProjectModifier:.ctor(String) (at Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:82)
10824: [Unity] Firebase.Editor.XcodeProjectModifier:PostProcessBuild(BuildTarget, String) (at Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:159)
10825: [Unity] System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
10826: [Unity] System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
10827: [Unity] System.Reflection.MethodBase:Invoke(Object, Object[])
10828: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10829: [Unity] UnityEditor.CloudBuild.Builder:Build()
10830: [Unity] (Filename: /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs Line: 115)
10831: [Unity] Uploading Crash Report
10832: [Unity] EXCEPTION: ArgumentNullException: Value cannot be null.
10833: [Unity] Parameter name: path1
10834: [Unity] UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
10835: [Unity] UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
10836: [Unity] UnityEngine.Logger:Log(LogType, Object)
10837: [Unity] UnityEngine.Debug:Log(Object)
10838: [Unity] UnityEditor.CloudBuild.BuildLogger:Log(String)
10839: [Unity] UnityEditor.CloudBuild.BuildLogger:HighlightUnityErrors(String, String, LogType)
10840: [Unity] UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
10841: [Unity] UnityEngine.DebugLogHandler:LogException(Exception, Object)
10842: [Unity] UnityEngine.Logger:LogException(Exception, Object)
10843: [Unity] UnityEngine.Debug:LogException(Exception)
10844: [Unity] UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
10845: [Unity] UnityEditor.CloudBuild.Builder:Build()
10846: [Unity] ArgumentNullException: Value cannot be null.
10847: [Unity] Parameter name: path1
10848: [Unity] at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <e1319b7195c343e79b385cd3aa43f5dc>:0
10849: [Unity] at Firebase.Editor.XcodeProjectModifier.ReadPList (System.String relFilePath) [0x00000] in Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:179
10850: [Unity] at Firebase.Editor.XcodeProjectModifier..ctor (System.String xcodeProjDir) [0x00052] in Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:92
10851: [Unity] at Firebase.Editor.XcodeProjectModifier.PostProcessBuild (UnityEditor.BuildTarget buildTarget, System.String pathToBuiltProject) [0x0007c] in Z:\tmp\tmp.saWQ0wIga5\firebase\app\client\unity\editor\src\XcodeProjectModifier.cs:159
10852: [Unity] at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
10853: [Unity] at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <e1319b7195c343e79b385cd3aa43f5dc>:0
@Thaina that is indeed very odd the line
[XcodeProjectModifier] Loading Xcode project '/BUILD_PATH/mycompany.new-unity-project.default-ios/temp20200304-3773-1s9il9c'.
shows that Unity passed the Xcode project path correctly to the plugin which then appears to have attempted to cache it, i.e...
internal XcodeProjectModifier(string xcodeProjDir) {
logger.LogDebug("Loading Xcode project '{0}'.", xcodeProjDir);
this.xcodeProjDir = xcodeProjDir;
then use it in...
private object ReadPList(string relFilePath) {
var plistPath = Path.Combine(xcodeProjDir, relFilePath);
where path1 has magically become a null pointer, unless something odd is going on like multiple XcodeProjectModifiers are being constructed, we'll debug.
In the meantime, check out https://firebase.google.com/support/release-notes/unity#version_6120_-_march_5_2020
@wilhuff I was redownloading GoogleService-Info.plist file but there was not any changes in that file since I have been downloaded it around 2 months ago
@stewartmiles Seem like this was fixed in 6.12
Now I could build both ios and android
@stewartmiles Is this problem really fixed in EAP though? Because if I want to try perf monitoring, it still in EAP, so if this is problem specific to EAP this might also cause the same problem when I try to introduce that part from EAP
@Thaina that's right but this is a _public_ issue tracker, we're tracking this issue for the EAP build internally.
Most helpful comment
@Thaina that is indeed very odd the line
shows that Unity passed the Xcode project path correctly to the plugin which then appears to have attempted to cache it, i.e...
then use it in...
where path1 has magically become a null pointer, unless something odd is going on like multiple XcodeProjectModifiers are being constructed, we'll debug.
In the meantime, check out https://firebase.google.com/support/release-notes/unity#version_6120_-_march_5_2020