From a310d448bca60996b25ca2bcc76cae10fbbeb5c4 Mon Sep 17 00:00:00 2001 From: Andrew Finke Date: Sun, 19 Jul 2020 00:06:49 -0500 Subject: [PATCH] gamekit workaround --- WKRKit/WKRKit/Info.plist | 2 +- WKRUIKit/WKRUIKit/Info.plist | 2 +- .../GKHostViewController/GKHostViewController+Match.swift | 7 ++++++- WikiRaces/WikiRaces/Info.plist | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/WKRKit/WKRKit/Info.plist b/WKRKit/WKRKit/Info.plist index 560c0a6..a3d7112 100644 --- a/WKRKit/WKRKit/Info.plist +++ b/WKRKit/WKRKit/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 13392 + 13396 NSPrincipalClass diff --git a/WKRUIKit/WKRUIKit/Info.plist b/WKRUIKit/WKRUIKit/Info.plist index 4a6c2ce..4d9a996 100644 --- a/WKRUIKit/WKRUIKit/Info.plist +++ b/WKRUIKit/WKRUIKit/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 14295 + 14299 NSPrincipalClass diff --git a/WikiRaces/Shared/Menu View Controllers/Connect View Controllers/GKHostViewController/GKHostViewController+Match.swift b/WikiRaces/Shared/Menu View Controllers/Connect View Controllers/GKHostViewController/GKHostViewController+Match.swift index 6dc8079..f6f7d20 100644 --- a/WikiRaces/Shared/Menu View Controllers/Connect View Controllers/GKHostViewController/GKHostViewController+Match.swift +++ b/WikiRaces/Shared/Menu View Controllers/Connect View Controllers/GKHostViewController/GKHostViewController+Match.swift @@ -62,7 +62,12 @@ extension GKHostViewController: GKMatchDelegate { self.match?.delegate = self self.addPlayers() } else { - fatalError() + os_log("%{public}s- gamekit did the impossible, no error, no match, nothing to see here", log: .gameKit, type: .error, #function) + DispatchQueue.main.async { + self.isMatchmakingEnabled = false + self.showError(title: "Failed to Create Race", message: "Please try again later.") + self.model.state = .soloRace + } } } diff --git a/WikiRaces/WikiRaces/Info.plist b/WikiRaces/WikiRaces/Info.plist index 5d55749..94a90b5 100644 --- a/WikiRaces/WikiRaces/Info.plist +++ b/WikiRaces/WikiRaces/Info.plist @@ -30,7 +30,7 @@ CFBundleVersion - 8990 + 8994 ITSAppUsesNonExemptEncryption LSApplicationCategoryType