Somethimes if you have a lot of warnings in debug like me in my project, playing the entire game in editor before packaging could help.
There are some errors that only occurs while you play the game. These errors won’t stop the game only pops in debug window.
So in my case after playing my game I start packaging and it’s like some woodoo magic: exit code 0 success, without modifying any code