playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.46k stars 966 forks source link

pod install fails with jenkins build #2626

Closed DoPinG83 closed 4 years ago

DoPinG83 commented 5 years ago

Hello. If I build iOS from UnityEditor manually everything works fine. But if I build iOS with Jenkins then .xcworkspace-file and Pods-project can't be created. In build logs I see: /usr/local/bin/pod --version UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object) UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[]) UnityEngine.Logger:Log(LogType, Object) UnityEngine.Debug:Log(Object) Google.Logger:Log(String, LogLevel) (at Z:\tmp\tmp.hBfUCDXuVe\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\Logger.cs:95) Google.IOSResolver:Log(String, Boolean, LogLevel) (at Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:944) Google.IOSResolver:RunCommandsAsync(CommandItem[], CommandItemCompletionHandler, Boolean, String) (at Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:1963) Google.IOSResolver:RunCommandAsync(String, String, CompletionHandler, String, Boolean, String) (at Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:1989) Google.IOSResolver:RunPodCommandAsync(String, String, CompletionHandler, Boolean, String) (at Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:2044) Google.IOSResolver:RunPodCommand(String, String, Boolean) (at Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:2062) Google.IOSResolver:OnPostProcessInstallPods(BuildTarget, String) (at Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:2102) System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&) System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo) System.Reflection.MethodBase:Invoke(Object, Object[]) UnityEditor.Build.AttributeCallbackWrapper:OnPostprocessBuild(BuildReport) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:158) UnityEditor.Build.cAnonStorey2:<>m1(IPostprocessBuildWithReport) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:398) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair(List1, Action1, List1, Action1, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:356) UnityEditor.Build.BuildPipelineInterfaces:OnBuildPostProcess(BuildReport) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:396) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean) UnityEditor.BuildPipeline:BuildPlayerInternal(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:358) UnityEditor.BuildPipeline:BuildPlayer(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:257) UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:240) Builder:GenericBuild(String[], String, BuildTargetGroup, BuildTarget, BuildOptions) (at Assets/Scripts/Utils/Editor/Builder.cs:140) Builder:PerformiOSBuild() (at Assets/Scripts/Utils/Editor/Builder.cs:55)

(Filename: Z Line: 0)

open: invalid option -- l Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-s ][-b ] [-a ] [filenames] [--args arguments] Help: Open opens files from a shell. By default, opens each file using the default application for that file.
If the file is in the form of a URL, the file will be opened as a URL. Options: -a Opens with the specified application. -b Opens with the specified application bundle identifier. -e Opens with TextEdit. -t Opens with default text editor. -f Reads input from standard input and opens with TextEdit. -F --fresh Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents. -R, --reveal Selects in the Finder instead of opening. -W, --wait-apps Blocks until the used applications are closed (even if they were already running). --args All remaining arguments are passed in argv to the application's main() function instead of opened. -n, --new Open a new instance of the application even if one is already running. -j, --hide Launches the app hidden. -g, --background Does not bring the application to the foreground. -h, --header Searches header file locations for headers matching the given filenames, and opens them. -s For -h, the SDK to use; if supplied, only SDKs whose names contain the argument value are searched. Otherwise the highest versioned SDK in each platform is used. Win32Exception: Cannot find the specified file at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00102] in <3845a180c26b4889bc2d47593a665814>:0 at System.Diagnostics.Process.Start () [0x00032] in <3845a180c26b4889bc2d47593a665814>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start() at GooglePlayServices.CommandLine.RunViaShell (System.String toolPath, System.String arguments, System.String workingDirectory, System.Collections.Generic.Dictionary2[TKey,TValue] envVars, GooglePlayServices.CommandLine+IOHandler ioHandler, System.Boolean useShellExecution, System.Boolean stdoutRedirectionInShellMode) [0x0028d] in Z:\tmp\tmp.xsDt8OYWxo\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\CommandLine.cs:614 at Google.IOSResolver.RunCommandsAsync (Google.IOSResolver+CommandItem[] commands, Google.IOSResolver+CommandItemCompletionHandler completionDelegate, System.Boolean displayDialog, System.String summaryText) [0x0020e] in Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:1964 at Google.IOSResolver.RunCommandAsync (System.String command, System.String commandArgs, GooglePlayServices.CommandLine+CompletionHandler completionDelegate, System.String workingDirectory, System.Boolean displayDialog, System.String summaryText) [0x00029] in Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:1989 at Google.IOSResolver.RunPodCommandAsync (System.String podArgs, System.String pathToBuiltProject, GooglePlayServices.CommandLine+CompletionHandler completionDelegate, System.Boolean displayDialog, System.String summaryText) [0x0004c] in Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:2044 at Google.IOSResolver.RunPodCommand (System.String podArgs, System.String pathToBuiltProject, System.Boolean displayDialog) [0x00019] in Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:2062 at Google.IOSResolver.OnPostProcessInstallPods (UnityEditor.BuildTarget buildTarget, System.String pathToBuiltProject) [0x0007e] in Z:\tmp\tmp.Y19pUixcRE\third_party\unity\unity_jar_resolver\source\IOSResolver\src\IOSResolver.cs:2102 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) 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 <d7ac571ca2d04b2f981d0d886fa067cf>:0 Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. 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 <d7ac571ca2d04b2f981d0d886fa067cf>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 at UnityEditor.Build.BuildPipelineInterfaces+AttributeCallbackWrapper.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) [0x00035] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:158 at UnityEditor.Build.BuildPipelineInterfaces+<OnBuildPostProcess>c__AnonStorey2.<>m__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) [0x00007] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:398 at UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List1[T] oneInterfaces, System.Action1[T] invocationOne, System.Collections.Generic.List1[T] twoInterfaces, System.Action1[T] invocationTwo, System.Boolean exitOnFailure) [0x000ee] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:356 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEditor.Build.BuildPipelineInterfaces:InvokeCallbackInterfacesPair(List1, Action1, List1, Action`1, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:361) UnityEditor.Build.BuildPipelineInterfaces:OnBuildPostProcess(BuildReport) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:396) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean) UnityEditor.BuildPipeline:BuildPlayerInternal(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:358) UnityEditor.BuildPipeline:BuildPlayer(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:257) UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:240) Builder:GenericBuild(String[], String, BuildTargetGroup, BuildTarget, BuildOptions) (at Assets/Scripts/Utils/Editor/Builder.cs:140) Builder:PerformiOSBuild() (at Assets/Scripts/Utils/Editor/Builder.cs:55)

(Filename: <3845a180c26b4889bc2d47593a665814> Line: 0)

How can I fix this?

olehkuznetsov commented 4 years ago

Should be fixed in v0.10.06. Feel free to reopen if it reproduces there.