Getting data from struct crahses IOS game

After some trial and error I figured out that when I build the game in Xcode first, and after that, launch it from the editor, everything works as intended.