Saving persistent data when updating App Store app

What is the best method for an App to store persistent data, so that the data does not get destroyed during an App Store update? Data like high scores or items earn while playing.

saveLocalData() if you use saveProjectData, it will be replaced with every update

Does that mean if an app downloaded from the Apple App Store saves it’s high score using saveLocalData, then that high score will continue to exist after the user updates the app to the new version from the App Store?

I do believe that is correct