High score system doesn't work on build

Is there a setting I need to change when porting it to XCode?

What system, where is it? Any errors? Any code snippets you think we might have to see before being able to help you?

just a simple high score system. works when I use it on the unity remote app but not when I make an actual build of the game, so that would suggest the code isn’t the issue. somehow, the high score isn’t being stored when a build is made of the game

Is the high score system based on playerprefs? Or is it an online system?

it’s just a basic script which says that the high score is the highest score the scorer has reached. it’s not online

Is it based on PlayerPrefs?