From 80151082a376c819f156c5fbf972ac77272d02c6 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 29 Apr 2020 22:17:55 +0300 Subject: [PATCH 1/2] fix Xcode Templates for Swift 5 --- .../Imagine Engine/iOS Game.xctemplate/AppDelegate.swift | 2 +- XcodeTemplates/Imagine Engine/iOS Game.xctemplate/Podfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift b/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift index 6cfd6f1..96ed450 100644 --- a/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift +++ b/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift @@ -5,7 +5,7 @@ import ImagineEngine var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - let scene = ___PACKAGENAME___Scene(size: UIScreen.main.bounds.size) + let scene = MyFirst2DGameScene(size: UIScreen.main.bounds.size) let window = GameWindow(scene: scene) window.makeKeyAndVisible() diff --git a/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/Podfile b/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/Podfile index 4fb3c9a..4e7d083 100644 --- a/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/Podfile +++ b/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/Podfile @@ -2,5 +2,5 @@ platform :ios, '9.0' target '___PACKAGENAME___' do use_frameworks! - pod 'ImagineEngine' + pod 'ImagineEngine', git: "https://github.com/JohnSundell/ImagineEngine.git" end From 9ad5786f6e27d259600691dcdd85ed5957c5f068 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 29 Apr 2020 22:27:19 +0300 Subject: [PATCH 2/2] fix AppDelegate application function signature --- .../Imagine Engine/iOS Game.xctemplate/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift b/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift index 96ed450..45a20f6 100644 --- a/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift +++ b/XcodeTemplates/Imagine Engine/iOS Game.xctemplate/AppDelegate.swift @@ -4,8 +4,8 @@ import ImagineEngine @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - let scene = MyFirst2DGameScene(size: UIScreen.main.bounds.size) + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + let scene = ___PACKAGENAME___Scene(size: UIScreen.main.bounds.size) let window = GameWindow(scene: scene) window.makeKeyAndVisible()