What is the main difference between the term minimum deployment and target deployment in Xcode?
I notice that I have to set up these two target versions, but I am not sure whether these two are different or same stuff just different words?
What is the main difference between the term minimum deployment and target deployment in Xcode?
I notice that I have to set up these two target versions, but I am not sure whether these two are different or same stuff just different words?
The Target Deployment you are referring to is in the "Project" section. This specifies the default Minimum Deployment for targets created as part of this project.
The Minimum Deployment is set per target and specifies the minimum OS version this particular target will support.
Since individual targets' version can always overwrite the project's version, behaviors are like the following.
In the past, the project "iOS Deployment Target" and the target's "Minimum Deployments" are represented by 4 different IPHONEOS_DEPLOYMENT_TARGET
values, 2 for each debug/release pairs.
Starting from some time around Xcode 15 (objectVersion = 60
), the behavior seems to have changed slightly in Xcode project file.
e.g.
"iOS Deployment Target" = iOS 15.1, "Minimum Deployments" = 15.0
will be automatically changed to
"iOS Deployment Target" = iOS 15.1, "Minimum Deployments" = 15.1
and there are 2 IPHONEOS_DEPLOYMENT_TARGET
in the project file.
"iOS Deployment Target" = iOS 15.0, "Minimum Deployments" = 15.1
will stay the same
and there are 4 IPHONEOS_DEPLOYMENT_TARGET
in the project file.
In case you want to make it 2 entries in the project file, simply tap backspace on the target "Minimum Deployments" (if it doesn't involve multiplatform), just like resetting to default in the build settings.
related posts:
© 2022 - 2024 — McMap. All rights reserved.