I have multiple build targets in my project. Some have tvOS set as the Base SDK whereas others have iOS set for this build setting. For some reason, despite only having one Base SDK set per build target, there are some that have multiple of the 'OS X Deployment Target' properties set.
Deployment targets shown in Xcode:
iOS Deployment Target iOS 8.0
macOS Deployment Target
tvOS Deployment Target tvOS 9.2
watchOS Deployment Target
There is no blank option when I click on the dropdowns of versions next to the deployment target settings. Is there any way to remove one of these?
Related
I am working on a project with multiple platforms (iOS, tvOS). This project has a target, with Allow Multi-Platform Builds enabled.
target 'TestTarget' do
project 'TestTarget/TestTarget'
pod 'SomePod' => '~> 9.2.1'
platform :ios, '12.3'
end
This works for iOS now, but tvOS won't compile anymore, because it doesn't link the framework properly. I can only set one platform in the Podfile for that target, but need to set tvOS as well.
I'm getting
The iOS Simulator deployment target: 'IPHONEOS_DEPLOYMENT_TARGET' is
set to 5.0, but the range of supported deployment target versions is
8.0 to 13.5.99. (in target 'CocoaAsyncSocket' from project 'Pods').
When I open Xcode and go to General and then under Deployment Info the Target is iOS9.0 and beside is a checkbox with the word iPhone beside it.
How do I change 'IPHONEOS_DEPLOYMENT_TARGET' for iOS Simulator?
When trying to preview a Mac Catalyst app I run into an isue:
The package product 'NIOTransportServices' requires minimum platform version 10.15 for the macOS platform, but this target supports 10.10 (in target 'NIOTSHTTPServer' from project 'swift-nio-transport-services')
When building a preview the build system seems to not respect the deployment target set.
Obviously, as this is an IOS project with Mac as extra target the MACOSX_DEPLOYMENT_TARGET variable is set to 10.15
Building and running the app works fine.
Is there a way of manually specifying the deployment target for preview builds?
As it turned out this was a bug in Xcode and is fixed since 12.0.1 and later.
I update my xcode to 9.3(9E145) through App Store. I use the CoreML which demand iOS 11.2, but there is no iOS 11.1 and 11.2 in Deployment Target list(only iOS 11.0 and 11.3). but others xcode is ok!
Even if your target's Deployment Target popup menu doesn't list your preferred deployment target, you can manually type it into the box:
Here, I've set it to 7.0 (which is impractical for anything shipping today). You can certainly type in "11.2" there.
When I look at the build settings for my new project in Xcode 4.2, I can change the "Deployment > iOS Deployment Target" to iOS 4.3, but under "Architecture > Base SDK", I am strictly limited to iOS 5.
Are there any other steps I need to take to ensure that my new app will run on iOS 4.3? How do I change the Base SDK?
When you install the iOS SDK, it removes any previously installed SDKs. That's why iOS 5 is your only SDK choice.
Setting the deployment target to iOS 4.3 is the way to ensure your app runs on 4.3. The deployment target is the earliest version of iOS that can run your app. You must make sure not to use any new iOS 5 technologies and methods or else the app won't run on 4.3.