feat(google-maps): replace iOS CocoaPods with Swift Package Manager by Copilot · Pull Request #661 · NativeScript/plugins · GitHub
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

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