Using below version of Unity on a project for a friend and sorry I cannot update 

I am currently building for Android. When I go into the Player settings in either the build settings menu or the Project → Player settings menu and update the Bundle Version Code, no matter what I do or where I come at it from, the change gets overwritten
Now how do I know this? I have VS Code open in another window and when I change to bundle version 362, I can see the file appear in the Git panel as changed and can see the change in the ProjectSettings folder. When I build, I can watch the changes disappear and the bundle being built build with 361 as it fails upload. I have tried everything I can think of and am at a complete loss. Anyone got any ideas?
You might have a build script that re-injects another bundle.
To prove / disprove this, just grep through your project for the bundle that gets reinjected.
grep’d through everything. Is that the only option, something is re-inserting it somewhere?
ACTUALLY… come to think of it… at some point around Unity 2020 or so, there is one more annoyance: there needs to be this line (with two spaces at the start) in your ProjectSettings:
overrideDefaultApplicationIdentifier: 1
But USUALLY that gets set when you tick the little “Override Default Package Name”
You could just open ProjectSettings/ProjectSettings.asset with your favorite text editor and make sure that line is in there somewhere… this is where I used to manually stick it when I was upgrading to 2020…
serializedVersion: 2
m_Bits: 238
iPhoneSdkVersion: 988
overrideDefaultApplicationIdentifier: 1
iOSTargetOSVersionString: 9.0
tvOSSdkVersion: 0
tvOSRequireExtendedGameController: 0```
Be careful not to damage your YAML! When in doubt, revert.
Mmmmm string was already there. I edited the ProjectSettings before even opening Unity. I go into the project settings and can see the version updated. But when I do Build from File > Build Settings, I can watch the file changes disappear. I agree something somewhere is overwriting them but for the life of me cannot figure how to tell where 
Thanks for the suggestions and if anyone has anything else, I would appreciate it
You can always bisect: make a brand-new project, copy over only the contents of your ProjectSettings/ folder and perhaps one blank scene. Make the build. Did the bundle change?
If not, bring over half of your project, duct-tape over the bleeding errors and build.
Almost certainly any code that manipulates the bundle will be either in a folder named Editor/ or else be guarded by #if UNITY_EDITOR compiler conditionals.
I’ll go out and guess that it is Firebase / Crashlytics. That thing is the hugest pain to integrate.
1 Like