Closed rlepinski closed 4 months ago
This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. Please see the Contributing Guide for how to create a Sample App. Thanks! Ionitron 💙
Reproduced here - https://github.com/urbanairship/capacitor-airship/tree/spm-issue/example
npx cap build ios
will produce the issue since its trying to pull in an SPM that is for iOS 14+ but the generated Package.swift is hardcoded to iOS 13
This issue has been labeled as type: bug
. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Description
Make iOS platform configurable when using SPM
Platforms
Request or proposed solution
Make it possible to specify the iOS platform version when using SPM.
Right now this template is used to generate an SPM file that pulls in all plugins (I think) -https://github.com/ionic-team/capacitor/blob/main/ios-spm-template/App/CapApp-SPM/Package.swift#L7, the issue it hardcodes the platform version to 13, so if any plugin requires a newer version the build fails:
If i modify the spm.js file that has that template embedded to use v14, build works as expected.
Alternatives
No response
Additional Information
You can install the @ua/capacitor-airship 2.0.0 plugin to reproduce this
The Package.swift with the issue: https://github.com/urbanairship/capacitor-airship/blob/main/Package.swift