Skip to content

feat(google-maps): replace iOS CocoaPods with Swift Package Manager#661

Open
Copilot wants to merge 2 commits intomainfrom
copilot/support-swift-package-manager
Open

feat(google-maps): replace iOS CocoaPods with Swift Package Manager#661
Copilot wants to merge 2 commits intomainfrom
copilot/support-swift-package-manager

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 9, 2026

Google Maps is deprecating CocoaPods distribution for new iOS SDK releases, which leaves @nativescript/google-maps pinned 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

    • Adds packages/google-maps/nativescript.config.ts
    • Declares the official Google Maps iOS Swift package:
      • repository: https://github.com/googlemaps/ios-maps-sdk.git
      • library: GoogleMaps
      • version: 10.12.0
  • Remove CocoaPods-specific integration

    • Deletes packages/google-maps/platforms/ios/Podfile
    • Stops shipping plugin-level CocoaPods metadata for iOS
  • Package/build metadata updates

    • Updates packages/google-maps/project.json to publish nativescript.config.ts with the package
    • Updates packages/google-maps/tsconfig.json to exclude nativescript.config.ts from library compilation
    • Updates packages/google-maps/.eslintrc.json to treat the config as package metadata rather than source

Example of the new plugin-level iOS package declaration:

import { NativeScriptConfig } from '@nativescript/core';

export default {
	ios: {
		SPMPackages: [
			{
				name: 'GoogleMaps',
				libs: ['GoogleMaps'],
				version: '10.12.0',
				repositoryURL: 'https://github.com/googlemaps/ios-maps-sdk.git',
			},
		],
	},
} as NativeScriptConfig;

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
    • Triggering command: /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:

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
Copilot AI requested a review from NathanWalker April 9, 2026 17:39
@NathanWalker NathanWalker marked this pull request as ready for review April 9, 2026 18:33
@NathanWalker NathanWalker changed the title google-maps: replace iOS CocoaPods integration with Swift Package Manager config feat(google-maps): replace iOS CocoaPods with Swift Package Manager Apr 9, 2026
@msajjid
Copy link
Copy Markdown

msajjid commented Apr 10, 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Swift Package Manager for @nativescript/google-maps iOS integration before Google Maps CocoaPods deprecation

3 participants