Skip to content

Commit 235f64c

Browse files
authored
plugin.md: Exclude CocoaPod when using Swift Package Manager (#1482)
- Document the use of `nospm="true"` to exclude Pods in cordova-ios 8 and newer when Swift Package Manager is used - Write `Cordova-iOS` as `cordova-ios` since this is the package name
1 parent 0e76d32 commit 235f64c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • www/docs/en/latest/guide/platforms/ios

www/docs/en/latest/guide/platforms/ios/plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ For example:
247247
248248
### Supporting Swift Package Manager (SPM)
249249
250-
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 in your `plugin.xml` file.
250+
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 in your `plugin.xml` file. To keep support with older cordova-ios versions, where only CocoaPods can be used, the appropriate `<pod>` tag can be extended with the attribute `nospm="true"`, which will exclude it, when Swift Package Manager is available, but install it, when it's not available.
251251
252252
#### Creating SPM's `Package.swift` File
253253

0 commit comments

Comments
 (0)