简体   繁体   中英

Updating an app from xcode instead of fresh install

I am developing a game for iOS and I am testing it on my iPhone. Is there any way I can update an old version of a game when testing it (installing it via xcode). It seems that xcode always installs a fresh copy on a device. So I want to install the game, play it for some time (reach some scores, store some data,...) and then update it with a new version from xcode (without loosing data).

Regards, L

You can save the current state of the current version of your game, using NSUserDefaults, and then load the game state back (if it is saved) every time you launch the game. This tutorial is old but contains all the basics.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM