NativeScript / NativeScript/plugins

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

未关闭
#660 0 条评论 1 个 reaction 已指派 2 人 在 GitHub 查看

@NathanWalker 已经在做这个了。

开始于 2026年4月9日。

  • #661 来自 @copilot-swe-agent —— 未关闭
主要语言
TypeScript
星标
206
派生
123
平均合并
2 天 1 小时
30 天内合并 PR
1

描述

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.

Image

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。