GameKit watchOS 6.2 to 7.0 API Differences

GKAchievement.h
Declaration
From@property (nonatomic, readonly, retain) GKPlayer *player
To@property (nonatomic, readonly, strong) GKPlayer *player

Declaration
From@property (nonatomic, readonly, copy) NSString *playerID
To@property (nonatomic, readonly, copy) NSString *playerID

GKChallenge.h
Added GKChallenge (Obsoleted)
GKError.h
GKLeaderboard.h
Declaration
From@property (nonatomic, readonly, retain) NSString *groupIdentifier
To@property (nonatomic, readonly, strong) NSString *groupIdentifier

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: instead.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: instead.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: instead.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: instead.

DeclarationAvailabilityDeprecation Message
From@property (nonatomic, readonly, retain) NSArray<GKScore *> *scoresAvailablenone
To@property (nonatomic, readonly, strong) NSArray<GKScore *> *scoresDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: to obtain scores.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: method to obtain the size of the leaderboard.

DeclarationAvailabilityDeprecation Message
From@property (nonatomic, readonly, retain) GKScore *localPlayerScoreAvailablenone
To@property (nonatomic, readonly, strong) GKScore *localPlayerScoreDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: method to obtain scores.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler: method to obtain scores.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedDo not instantiate GKLeaderboard directly. Use class method loadLeaderboardsWithIDs:completionHandler: to get the leaderboards.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse instance method loadEntriesForPlayers:timeScope:completionHandler: instead.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadEntriesForPlayerScope:timeScope:range:completionHandler:.

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse class method loadLeaderboardsWithIDs:completionHandler:

GKLeaderboardEntry.h
GKLeaderboardScore.h
GKLeaderboardSet.h
Declaration
From@property (nonatomic, readonly, retain) NSString *groupIdentifier
To@property (nonatomic, readonly, strong) NSString *groupIdentifier

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse loadLeaderboardsWithHandler: instead.

GKLocalPlayer.h
Removed GKAuthenticationType
Removed GKAuthenticatingWithoutUI
Removed GKAuthenticatingWithGreenBuddyUI
Removed GKAuthenticatingWithAuthKitInvocation
GKMatch.h
Removed GKMatch (Deprecated)
Added GKMatch (Obsoleted)
Declaration
From@property (nonatomic, readonly) NSArray<NSString *> *playerIDs
To@property (nonatomic, readonly) NSArray<NSString *> *playerIDs

GKMatchmaker.h
Added GKMatchmaker (Obsoleted)
GKPublicConstants.h
GKScore.h
Modified GKScore
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedReplaced by GKLeaderboardEntry

Declaration
From@property (nonatomic, readonly, retain) NSString *playerID
To@property (nonatomic, readonly, retain) NSString *playerID

GKSession.h
Declaration
From@property (assign) id<GKSessionDelegate> delegate
To@property (weak) id<GKSessionDelegate> delegate

GKTurnBasedMatch.h
Declaration
From@property (nonatomic, readonly, retain) GKPlayer *player
To@property (nonatomic, readonly, strong) GKPlayer *player

Declaration
From@property (nonatomic, readonly, retain) NSString *matchID
To@property (nonatomic, readonly, strong) NSString *matchID

Declaration
From@property (nonatomic, readonly, retain) NSDate *creationDate
To@property (nonatomic, readonly, strong) NSDate *creationDate

Declaration
From@property (nonatomic, readonly, retain) NSArray<GKTurnBasedParticipant *> *participants
To@property (nonatomic, readonly, strong) NSArray<GKTurnBasedParticipant *> *participants

Declaration
From@property (nonatomic, readonly, retain) GKTurnBasedParticipant *currentParticipant
To@property (nonatomic, readonly, strong) GKTurnBasedParticipant *currentParticipant

Declaration
From@property (nonatomic, readonly, retain) NSData *matchData
To@property (nonatomic, readonly, strong) NSData *matchData

Declaration
From@property (nonatomic, readonly, retain) NSArray<GKTurnBasedExchange *> *exchanges
To@property (nonatomic, readonly, strong) NSArray<GKTurnBasedExchange *> *exchanges

Declaration
From@property (nonatomic, readonly, retain) NSArray<GKTurnBasedExchange *> *activeExchanges
To@property (nonatomic, readonly, strong) NSArray<GKTurnBasedExchange *> *activeExchanges

Declaration
From@property (nonatomic, readonly, retain) NSArray<GKTurnBasedExchange *> *completedExchanges
To@property (nonatomic, readonly, strong) NSArray<GKTurnBasedExchange *> *completedExchanges

AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedpass GKLeaderboardScore to endMatchInTurnWithMatchData:scores:completionHandler instead

Declaration
From@property (nonatomic, assign) NSObject<GKTurnBasedEventHandlerDelegate> *delegate
To@property (nonatomic, weak) NSObject<GKTurnBasedEventHandlerDelegate> *delegate

GKVoiceChat.h
Added GKVoiceChat (Obsoleted)
Declaration
From@property (nonatomic, readonly) NSArray<NSString *> *playerIDs
To@property (nonatomic, readonly) NSArray<NSString *> *playerIDs