From 12efabcbf0df6f0bf58ec5fce90e3d519ce47e90 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 22 Sep 2017 11:13:34 -0700 Subject: [PATCH] Added instructions for deploying to older iOS devices (thanks Sylvain!) --- docs/README-ios.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/README-ios.md b/docs/README-ios.md index f7266f97dd4cf..18c4bc0669b1e 100644 --- a/docs/README-ios.md +++ b/docs/README-ios.md @@ -266,3 +266,20 @@ e.g. #endif return 0; } + +============================================================================== +Deploying to older versions of iOS +============================================================================== + +SDL supports deploying to older versions of iOS than are supported by the latest version of Xcode, all the way back to iOS 6.1 + +In order to do that you need to download an older version of Xcode: +https://developer.apple.com/download/more/?name=Xcode + +Open the package contents of the older Xcode and your newer version of Xcode and copy over the folders in Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport + +Then open the file Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist and add the versions of iOS you want to deploy to the key Root/DefaultProperties/DEPLOYMENT_TARGET_SUGGESTED_VALUES + +Open your project and set your deployment target to the desired version of iOS + +Finally, remove GameController from the list of frameworks linked by your application and edit the build settings for "Other Linker Flags" and add -weak_framework GameController