Is there a way to reset Achievement progress for my GameCenter sandbox account?

col000r picture col000r · Feb 17, 2012 · Viewed 7.4k times · Source

I have a GameCenter Sandbox-Account have tested my game, earned achievements, etc. Now I've made some changes and want to test earning Achievements again!

Do I have to make an entire new Sandbox-Account or is there a way to reset my account?

Answer

Richard Buckingham picture Richard Buckingham · Feb 28, 2012

The following code is from the Apple Documentation.

- (void) resetAchievements
{
   // Clear all locally saved achievement objects.
   achievementsDictionary = [[NSMutableDictionary alloc] init];
   // Clear all progress saved on Game Center
   [GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error)
   {
      if (error != nil)
      // handle errors
   }];
}

Also have a look at Apple's sample project GKTapper.