NativeScript / NativeScript/plugins
Support Swift Package Manager for @nativescript/google-maps iOS integration before Google Maps CocoaPods deprecation
- Dominant language
- TypeScript
- Stars
- 206
- Forks
- 123
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 1
Description
Hello,
I’m using @nativescript/google-maps and wanted to raise an upcoming iOS dependency issue.
Google Maps Platform has notified customers that they are phasing out CocoaPods as an installation method for their iOS SDKs. According to Google, new Google Maps Platform iOS SDK releases will continue on CocoaPods only through Q2 2026, and starting with version 11.0, new releases will no longer be published through CocoaPods. They are advising developers to migrate to Swift Package Manager or manual installation.
The current @nativescript/google-maps plugin still appears to rely on CocoaPods for iOS. In the latest plugin source, packages/google-maps/platforms/ios/Podfile still installs Google Maps through CocoaPods. Because of Google’s change, this means NativeScript apps using this plugin may not be able to consume newer Google Maps iOS SDK releases going forward unless the plugin supports Swift Package Manager or another non-CocoaPods integration path.
I am currently using @nativescript/google-maps 1.5.2 in one app, and I also reviewed the latest plugin source, which is currently 1.8.0 in the NativeScript plugins repo. I was able to make a local custom fork work by removing the iOS Podfile-based dependency and supplying the Google Maps iOS SDK from the host app through NativeScript ios.SPMPackages, but I wanted to ask whether there are any official plans to support this in the plugin itself.
Questions:
Are there any plans to add Swift Package Manager support for the iOS side of @nativescript/google-maps?
If so, is there a recommended migration path for apps currently using the CocoaPods-based plugin integration?
If not, would the maintainers accept a contribution that updates the plugin’s iOS dependency strategy to work with Swift Package Manager?
References:
Google Maps iOS versions/install docs: https://developers.google.com/maps/documentation/ios-sdk/versions
Google Maps iOS release notes: https://developers.google.com/maps/documentation/ios-sdk/release-notes
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.