Skip to content

[Bug]: swift-tools-version in SPM apps still hardcoded to 5.9 for Cordova plugins #8474

Description

@sizeak

Capacitor Version

Support for setting this in Capacitor plugins was added here but this doesn't extend to Cordova plugins.

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

swift-tools-version: 5.9 hardcoded in

const content = `// swift-tools-version: 5.9

Expected Behavior

Should take value of

{
	// other configs...
	"experimental": {
		"ios": {
			"spm": {
				"swiftToolsVersion": "6.1"
			}
		}
	}
}

from capacitor.config.json

Project Reproduction

https://github.com/ionic-team/capacitor

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions