Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set minimum supported iOS version?

Tags:

xcode

ios

swift

All my iOS build targets are: IPHONEOS_DEPLOYMENT_TARGET = 14.0;

but it's saying I'm supporting 9.0. Am I misunderstanding something?

Error:

The package product 'Crypto' requires minimum platform version 13.0 for the iOS platform, but this target supports 9.0

like image 295
Nick Avatar asked Oct 11 '20 23:10

Nick


People also ask

What is the minimum iOS version?

The minimum supported release of iOS is iOS 11.

What is minimum deployment target iOS?

Do I need to change the Minimum Deployment Target because of the latest news in the Apple Developer News. Currently, the Minimum Deployment Target of my apps is iOS 10.

How do I change iPhone deployment target?

Select pods from the drop-down menu. Build settings may be found by selecting each project and target and clicking on them. Change the iOS Deployment Target version from 8.0 to anything higher than 8.0 in the Deployment subsection (better to try the same project version).


1 Answers

Platforms!

You have to add the platforms section to your Package.swift file like line below:

let package = Package(
    name: "YOUR_PACKAGE_NAME",
    platforms: [
        .iOS(.v12),
        .tvOS(.v12),
        .watchOS(.v5),
        .macOS(.v10_15)
    ],

That's the usual case to cause this error.

Best.

like image 134
mgyky Avatar answered Nov 15 '22 04:11

mgyky