Unity 2018.4.1f1 LTS batch build for iOS is not working

So, I tested creating a build in both 2018.4.0f1 and 2018.4.1f1. 2018.4.0f1 works for iOS builds, however, when building with 2018.4.1f1, I get the build error:

I saw that the 2019 versions are having the similar issues as well. Will there be a hotfix for 2018 LTS, or should I keep with 2018.4.0f1 for the time being until this is fixed? Or, is there a workaround?

This is using the BuildPipeline.BuildPlayer(GetAllScenePaths(), path, BuildTarget.iOS, BuildOptions.None); method

Are you using Cloud Build? I could not find your account in our system. If you are using Cloud Build then please submit a support ticket as this should already be fixed. If you are running locally then you can report a bug via Help → Report a Bug in the editor. If this is happening to you when running a batch mode build then you should be able to resolve it by providing the -username and -password command line flags

I think I posted this in the wrong category thread. I’m using TeamCity that runs a shell script

Where TeamCityBuilder.BuildIosPlayer is calling BuildPipeline.BuildPlayer. Thus, this is probably a batchmode issue for 2018.4.1f1.

Yes, this is likely to be a similar issue to the one we recently experienced in cloud build. You can report the issue via the Editor or work around the issue by configuring the -username and -password flags in your script.

Thanks for the support and I will add this to the editor bug reports

I actually tried it with the -username -password workaround, and it still did not work.

Same here, got the error on iOS build after upgrading from 2018.4.0f1 to 2018.4.3f1.
For now, I have disabled Unity cloud build and cloud diagnostics and that seems to have solved the problem.
@victorw any idea when will this issue be addressed?

It’s not something I’m directly working on so I couldn’t provide any accurate estimate but I can give you the issue tracker link (Unity Issue Tracker - [iOS] Batchmode builds fail with CloudDiagnostics enabled when USYM_UPLOAD_AUTH_TOKEN is not set) and tell you that it’s being worked on as a high priority

Great, thanks for the update @victorw !

Looks like issue is still coming @ unity 2019.3.0f6

Its working after adding CD access to my jenkins machine user