feat(google-maps): replace iOS CocoaPods with Swift Package Manager#661
Open
feat(google-maps): replace iOS CocoaPods with Swift Package Manager#661
Conversation
Copilot
AI
changed the title
[WIP] Add support for Swift Package Manager in @nativescript/google-maps
google-maps: replace iOS CocoaPods integration with Swift Package Manager config
Apr 9, 2026
|
@NathanWalker Thanks for picking this up so quickly. This looks like the right direction for addressing the Google Maps iOS CocoaPods deprecation. I had one follow-up question on release and compatibility. Our current app is still using @nativescript/google-maps 1.5.2, so even though this PR appears to solve the issue in the current plugin line, it would not automatically help apps still on the older package version unless they upgrade or carry a custom fork. Do you expect this change to be released in a new published version of @nativescript/google-maps soon after merge? Also, is there any chance of a backport or recommended migration path for apps currently on the 1.5.x line? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google Maps is deprecating CocoaPods distribution for new iOS SDK releases, which leaves
@nativescript/google-mapspinned to an installation path that will stop receiving updates. This change moves the plugin’s iOS dependency declaration to NativeScript SPM metadata so consuming apps can resolve the Google Maps iOS SDK through Swift Package Manager.SPM-based iOS dependency
packages/google-maps/nativescript.config.tshttps://github.com/googlemaps/ios-maps-sdk.gitGoogleMaps10.12.0Remove CocoaPods-specific integration
packages/google-maps/platforms/ios/PodfilePackage/build metadata updates
packages/google-maps/project.jsonto publishnativescript.config.tswith the packagepackages/google-maps/tsconfig.jsonto excludenativescript.config.tsfrom library compilationpackages/google-maps/.eslintrc.jsonto treat the config as package metadata rather than sourceExample of the new plugin-level iOS package declaration:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
developers.google.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either: