Hardened runtime settings

I am able to change the xcode project settings needed for hardened runtime. However, If I select replace when building all my hardened runtime settings are gone and I if choose append my build version when archiving doesn’t update. Is there a way to get the hardened runtime settings on when creating/replacing the xcode project or updating the version string when appending?

@dwatt-hollowworldgames have you managed to work around this issue? Using Unity 2021.3.16f1 on 12.6.5 with Xcode 14.2 the same happens when the “Product > Destination” is changed and the latter seems to be reverting to “My Mac” continuously. Perhaps a solution would be to set everything to one’s liking and then save to a configuration file, which can be referenced in the very settings, so presumably the settings would keep loading from there; just started reviewing Configuring the build settings of a target | Apple Developer Documentation

No there is no fix but to change it manually after generating a new xcode project. Thankfully , its just an issue when dealing with a relatively finalized build, so its annoying but not a game stopper.