Test Game Center integration for new game

Hi!

I have a new game and I have setup the leaderboards and achievements in App Store Connect but all of them are "not live" and in console I see this warning:

"No AchievementDescription could be found for Achievement with ID: {my_ID}"

I did not do a fresh Game Center setup for a long time, but is there any way to test if achievements and leaderboards are working for nonreleased game?

Thank you!

Yes, you can test and TestFlight achievements without them being live. That error is saying you have the app referring to the wrong or mistyped ID. Should be the Achievement ID and not the reference name.

let progress = min(percentComplete, 100.0)
let achievement = GKAchievement(identifier: achievementID)
achievement.percentComplete = progress
achievement.showsCompletionBanner = true  // Optional: to show a banner when completed

// Report the achievement progress to Game Center
GKAchievement.report([achievement]) { error in
          if let error = error {
                print("Error reporting achievement: \(error.localizedDescription)")
          } else {
                print("Achievement reported successfully")
          }
  }

One thing to add is that this game is for visionOS

Test Game Center integration for new game
 
 
Q