fix(cli): adapt Package.swift to work on older Swift versions (#10687)

I noticed the plugin build fails on older Swift (tested on macOS 12) because the default minimum required macOS version (10.10 in my case) is older than `v10_13` which is set by the Tauri iOS package (and also swift-rs).
So the plugins must explicitly define a minimum macOS version too.
This commit is contained in:
Lucas Fernandes Nogueira 2024-08-19 16:29:16 -03:00 committed by GitHub
parent 8d148a9e25
commit 7796a8fc64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fix Swift plugin compilation on older versions.

View File

@ -8,6 +8,7 @@ import PackageDescription
let package = Package(
name: "tauri-plugin-sample",
platforms: [
.macOS(.v10_13),
.iOS(.v13),
],
products: [

View File

@ -6,6 +6,7 @@ import PackageDescription
let package = Package(
name: "tauri-plugin-{{ plugin_name }}",
platforms: [
.macOS(.v10_13),
.iOS(.v13),
],
products: [