How to set minimum supported iOS version?

Viewed 4404

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

3 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.

You can remove that package and add it again. Find your suitable version/branch of your package in github and edit in here.

Ex: Adding Alamofire

The easiest part would be to just change the iOS deployment target to your new minimum iOS version.

You can do this by selecting Project Target in Xcode -> General -> Deployment Info -> Here you can change Deployment Target.

You can follow this link for detailed information:-

https://www.avanderlee.com/workflow/minimum-ios-version/

Related