S'rCat
S'rCat

Reputation: 638

Xcode error when Package.swift platform changed from v13 to v14 "v14 unavailable"

I need features in iOS v14. I have a local package. When I change the platforms item in "Packages.swift",

platforms: [.macOS(.v10_15), .iOS(.v14)],

I get the error 'v14' unavailable.

The app deployment target is set to 14.1. I'm running Xcode v12.5.1

Upvotes: 9

Views: 2281

Answers (1)

S'rCat
S'rCat

Reputation: 638

There is a commented line at the top of "Package.swift"

// swift-tools-version:5.2

When I changes the 5.2 -> 5.3 the error cleared. Why would a "comment" line have any effect?

Upvotes: 11

Related Questions