Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 recommend me to change the min iOS Deployment Target from 7.1 to 8.0

Tags:

xcode

ios

xcode8

When I use the Xcode 8 beta(8S128d) to open my project,it recommend me to change the min iOS Deployment Target to 8.0 instead 7.1. And I found that there is no option less than 8.0 in the iOS Deployment Target list.

Deployment Target

So, does it mean that I no longer need to adjust my project for iOS 7.x or less?

like image 356
X.Jian Avatar asked Jun 14 '16 16:06

X.Jian


People also ask

How do I change the minimum deployment target in Xcode?

To change your deployment target, open up your project file in Xcode and check the setting under Build Settings -> Deployment(...) Check this answer to add earlier devices support.

How do I change the minimum iOS version in Xcode?

iOS Deployment Target set to 14.1 or whatever version you want to be minimum inside the Project > Build Settings > Deployment for all instances. iOS Deployment Target set to 14.1 or whatever version you want to be minimum inside the Target > Build Settings > Deployment for all instances.

How do I increase deployment target in Xcode?

Simply make a manual update to the Development target in the Xcode Pods file. It is your pod files deployment target iOS Version, not your project deployment target iOS Version, that is causing the issue; thus, you must update the deployment iOS version for your pods to anything more significant than 8.0 as well.

What should be iOS deployment target?

In short, every application that runs on one of Apple's platforms has a deployment target. A deployment target is nothing more than the minimum version of the operating system the application can run on. Fire up Xcode and create a new project by choosing the App template from the iOS > Application section.


2 Answers

I think if the app has many users who are using iOS 7, it would be necessary to adjust project to support iOS 7.

I have tried build, debug, archive with deployment target 7.0 using Xcode 8 Beta(8S128d).
All succeeded. Also successfully export and install the ipa on my iPhone 4 (iOS 7.1.2(11D257)) .

I did the followings to change my project deployment target to 7.0 and remove the suggestion warning.

  1. Manually input "7.0" in the "iOS Deployment Target" text box. Manually change iOS deployment target

  2. Uncheck the "Update iOS Deployment Target" and press "Perform Changes" / "Done" button,
    then the recommended suggestion warning will disappear. Recommended Suggestion



Edit:

Make Xcode 8.x debug your apps on iOS 7.x devices.

  1. You need Xcode 7.x . You can download it from Apple Developer Site.

  2. Open Finder, and go to "Xcode 7.x.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/".

  3. Copy "7.0" and "7.1" folders and paste them to "Xcode 8.x.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/".

enter image description here

  1. Open "Xcode 8.x.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist"

enter image description here

  1. Add values, "7.0" and "7.1", to key, "Root/DefaultProperties/DEPLOYMENT_TARGET_SUGGESTED_VALUES", according to the following screenshot.

enter image description here

  1. Restart Xcode 8.x.

  2. Now you can choose "7.0" or "7.1" in the "iOS Deployment Target" text box list and debug your apps on iOS 7.x devices.

like image 136
Leon Avatar answered Sep 20 '22 08:09

Leon


The minimum deployment target with Xcode 8 is iOS 8. To support target the iOS SDK 7.x and below, use Xcode 7.

If you try to use a deployment target of iOS 7.x or below, Xcode will suggest you change your target to iOS 8:

Xcode Warning

like image 37
JAL Avatar answered Sep 18 '22 08:09

JAL