The value is never changed by Capacitor once you run npx cap add ios.
Unless you are deleting ios folder and running npx cap add ios every time you want to build.
We recommend committing ios folder instead of deleting and recreating it every time.
But if you still want to do that, I think you can use trapeze to change the bundle identifier programmatically with some script