From a998de24d2ddeb9ecdcd13903f9f83074ca21cc6 Mon Sep 17 00:00:00 2001 From: Manuel Beck Date: Mon, 23 Feb 2026 17:18:09 +0100 Subject: [PATCH 1/2] doc(plugin.xml): add `package` attribute for `` - cordova-ios 8 introduced support for the Swift Package Manager (SPM) which must be configured by the `package` attribute of the `platform` tag - Added link to the iOS Plugin Development Guide linking to `Supporting Swift Package Manager (SPM)` section --- www/docs/en/latest/plugin_ref/spec.md | 1 + 1 file changed, 1 insertion(+) diff --git a/www/docs/en/latest/plugin_ref/spec.md b/www/docs/en/latest/plugin_ref/spec.md index 035da9aef13..fb4e7ea478a 100644 --- a/www/docs/en/latest/plugin_ref/spec.md +++ b/www/docs/en/latest/plugin_ref/spec.md @@ -246,6 +246,7 @@ Identifies platforms that have associated native code or require modifications t Attributes | Description ---------------- | ------------ name
{% cdv_vartype string %}| *Required*
Allowed values: ios, android, browser, electron
Identifies a platform as supported, associating the element's children with that platform. +package
{% cdv_vartype string %} {% cdv_platform ios %}| Allowed value: swift
Starting from cordova-ios 8 and greater, support for the Swift Package Manager (SPM) has been implemented. To start using SPM with your plugin, a `Package.swift` file will need to be created in the plugin's root directory and add the `package="swift"` attribute to the iOS `platform` element. See for more information: [Supporting Swift Package Manager (SPM)](../guide/platforms/ios/plugin.html#supporting-swift-package-manager-spm). Example: ```xml From b2a4557ca22443b4596e618084e81c9ed9c729db Mon Sep 17 00:00:00 2001 From: Manuel Beck Date: Tue, 24 Feb 2026 15:05:04 +0100 Subject: [PATCH 2/2] Update www/docs/en/latest/plugin_ref/spec.md Co-authored-by: Darryl Pogue --- www/docs/en/latest/plugin_ref/spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/docs/en/latest/plugin_ref/spec.md b/www/docs/en/latest/plugin_ref/spec.md index fb4e7ea478a..be1881b8a34 100644 --- a/www/docs/en/latest/plugin_ref/spec.md +++ b/www/docs/en/latest/plugin_ref/spec.md @@ -246,7 +246,7 @@ Identifies platforms that have associated native code or require modifications t Attributes | Description ---------------- | ------------ name
{% cdv_vartype string %}| *Required*
Allowed values: ios, android, browser, electron
Identifies a platform as supported, associating the element's children with that platform. -package
{% cdv_vartype string %} {% cdv_platform ios %}| Allowed value: swift
Starting from cordova-ios 8 and greater, support for the Swift Package Manager (SPM) has been implemented. To start using SPM with your plugin, a `Package.swift` file will need to be created in the plugin's root directory and add the `package="swift"` attribute to the iOS `platform` element. See for more information: [Supporting Swift Package Manager (SPM)](../guide/platforms/ios/plugin.html#supporting-swift-package-manager-spm). +package
{% cdv_vartype string %} {% cdv_platform ios %}| Allowed value: swift
Starting from cordova-ios 8, support for the Swift Package Manager (SPM) has been implemented. To start using SPM with your plugin, a `Package.swift` file will need to be created in the plugin's root directory and add the `package="swift"` attribute to the iOS `platform` element. See for more information: [Supporting Swift Package Manager (SPM)](../guide/platforms/ios/plugin.html#supporting-swift-package-manager-spm). Example: ```xml