Structure

GKError

Error codes for the GKError domain.

Declaration

struct GKError

Topics

Error Codes

static var authenticationInProgress: GKError.Code

The requested operation could not be completed because local player is already authenticating.

static var cancelled: GKError.Code

The requested operation has been canceled or disabled by the user.

static var challengeInvalid: GKError.Code

The challenge request failed due to invalid challenge data.

static var communicationsFailure: GKError.Code

The requested operation could not be completed due to an error communicating with the server.

static var gameUnrecognized: GKError.Code

The requested operation could not be completed because this application is not recognized by Game Center.

static var invalidCredentials: GKError.Code

The requested operation could not be completed because the username and/or password are incorrect.

static var invalidParameter: GKError.Code

The requested operations could not be completed because one or more parameters are invalid.

static var invalidPlayer: GKError.Code

The requested operation could not be completed because the player is invalid.

static var invitationsDisabled: GKError.Code

The requested operation could not be completed because the receiving player has disabled invitations.

static var matchNotConnected: GKError.Code

The requested operation could not be completed because the match is not connected to other players.

static var matchRequestInvalid: GKError.Code

The requested operation could not be completed because the match request is invalid.

static var notAuthenticated: GKError.Code

The requested operation could not be completed because local player has not been authenticated.

static var notSupported: GKError.Code

Game Center is not supported.

static var parentalControlsBlocked: GKError.Code

The requested operation could not be completed because this feature has been disabled in Restrictions.

static var playerPhotoFailure: GKError.Code

The requested operation to retrieve a player’s photo can not be completed.

static var scoreNotSet: GKError.Code

The requested operation could not be completed because the score value has not been set.

static var turnBasedInvalidParticipant: GKError.Code

The requested operation could not be completed because the specified participant is invalid.

static var turnBasedInvalidState: GKError.Code

The requested operation could not be completed because the session is in an invalid state.

static var turnBasedInvalidTurn: GKError.Code

The requested operation could not be completed because the specified participant does not have the required turn state.

static var turnBasedMatchDataTooLarge: GKError.Code

The requested operation could not be completed because the match data was too large.

static var turnBasedTooManySessions: GKError.Code

The requested operation could not be completed because it would exceed the maximum number of sessions.

static var ubiquityContainerUnavailable: GKError.Code

The requested operation could not be completed because you are not signed in to iCloud or have not enabled iCloud Drive.

static var underage: GKError.Code

The requested operation could not be completed because this feature is disabled for underage players.

static var unexpectedConnection: GKError.Code

An unexpected player has connected to a match.

static var unknown: GKError.Code

The requested operation could not be completed due to an unknown error.

static var userDenied: GKError.Code

The requested operation could not be completed because it was denied by the user.

enum GKError.Code

Error codes for the GameKit error domain.

Error Domain

let GKErrorDomain: String

The error domain for general game errors.

Operator Functions

static func != (GKError, GKError) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software