0 Replies
      Latest reply on May 28, 2019 10:23 PM by kruti trivedi
      kruti trivedi Level 1 Level 1 (0 points)

        Error Domain=GKServerErrorDomain Code=5053 "status = 5053, Leaderboard does not exist, but i'm having that leaderboard and that leaderboard working perfectly on testflight build but when i execute from xcode it show leaderboard does not exist

         

         

        @objc func GetTop25TimeFromLeaderboard()

            {

                if self.gcEnabled == false

                {

                    NotificationCenter.default.post(Notification.init(name: Notification.Name(rawValue: "setDataforLeaderBoard"), object: nil, userInfo: ["Success":false]))

                    self.authenticateLocalPlayer()

                }

                let request = GKLeaderboard()

                request.identifier = Constants.TIME_LEADERBOARD_ID

                request.playerScope = .global

                request.timeScope = .allTime

                request.range = NSMakeRange(1, 25)

              

                request.loadScores { (scores, err) in

                    if(err != nil)

                    {

                        print("error occur fetch")

                        print(err as Any)

                        NotificationCenter.default.post(Notification.init(name: Notification.Name(rawValue: "setDataforLeaderBoard"), object: nil, userInfo: ["Success":false]))

                        return

                    }

             }

        }