superunitybuild / buildtool

A powerful automation tool for quickly and easily generating builds with Unity.
MIT License
1.19k stars 121 forks source link

[Unity 2022.2.2] "Build" works but "Perform all enabled builds" fails #103

Closed GieziJo closed 1 year ago

GieziJo commented 1 year ago

Source of the issue: I updated form Unity 2022.1.20 to Unity 2022.2.2

In Unity 2022.1.20 the package worked flawlessly, but after updating, building fails.

The interesting part is it actually works when building a single action (most of the time), but when trying to perform "" the build fails with a random error: Error building Player because scripts have compile errors in the editor

I also tried building for windows, mac and linux one by one using the built in unity builder, and they all succeeded, so I don't think it has anything to do with my code.

I'd like to help debugging but I don't really know where to start, any ideas?

One thing I saw is that unity 2022.2.2 now has scripting define symbols per platform (although only one for standalone).

I'm on the last version of the git master branch.

p.s. Thanks a lot for your amazing tool, it's been a life saver so far!

robinnorth commented 1 year ago

Hi @GieziJo, what compile errors did Unity report for you?

I have just tried a 'Perform all enabled builds' in 2022.2.14 with Windows and Android platforms and had the builds finish successfully. This was just using a very simple demo project. Are you able to recreate the issue in a reduced test case project, or does it only occur for you in your current Unity project?

Thank you!