Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4
2017.4.32f1
2018.4
Issue ID
1196703
Regression
No
Building through batch mode fails if a script was deleted outside of the Editor
Reproduction steps:
1. Open and Exit "UnityIssue726318.zip" project
2. Delete any script (Advert.cs)
3. Run Unity with the command line arguments: "*EDITOR PATH*\Unity.exe -batchmode -nographics -quit -buildTarget ios -executeMethod ExternalBuildProcess.BuildiPhone -projectPath "*PROJECT PATH*" -logfile "*LOG PATH*\Log.log""
4. After the build completes, check the log
Expected Result: "ExitCode 0"
Actual Result: "ExitCode 1"
Reproduced with: 2018.4.13f1, 2017.4.35f1
Did not reproduce on: 2020.1.0a14, 2019.3.0b12, 2019.2.13f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Matching Selectors list not updating correctly with element's pseudo-state updates
- [Android] Crash on vendor/lib64/egl/libGLES_mali.so when Graphics Jobs(Experimental) is disabled and the Player is running on the Google Pixel 6 with the March security patch installed
- Profiler does not profile after building the Project with Autoconnect Profiler Option enabled
- Editor slows down when selecting a script with the [HideInInspector] attribute on arrays with dynamic values
- [XR] Custom Pass not working as intended with Single Pass Instanced when XR is initialized after runtime start
Resolution Note:
https://docs.unity3d.com/Manual/CommandLineArguments.html
The -executeMethod command line parameter says how to control the exit code from their script execution by manually calling EditorApplication.Exit with zero or non-zero. If this is not used, Unity returns the exit code based on the entire application sate.