GoogleApisForiOSComponents icon indicating copy to clipboard operation
GoogleApisForiOSComponents copied to clipboard

Migration to Swift Package Manager due to Google Maps SDK deprecation of CocoaPods

Open mduchev opened this issue 4 months ago • 2 comments

Hey there!

I just got an email from Google saying they’ll stop supporting CocoaPods for their iOS SDKs after Q2 2026, and will focus on Swift Package Manager (SPM) instead. Since the NuGet package that I'm using (Onion.Maui.GoogleMaps) uses this project's CocoaPods for iOS, I wanted to check in on plans for migrating to SPM.

Are there any plans for adding SPM support or maybe a guide for the migration? I’m hoping we can stay up-to-date with Google Maps SDKs after CocoaPods is phased out.

Thanks!

Image

mduchev avatar Oct 07 '25 21:10 mduchev

I was wondering too

hirurgaa avatar Oct 07 '25 21:10 hirurgaa

This shouldn't be too much of a problem.

CocoaPods isn't (directly) used or needed to build or consume the Google Maps NuGet. I say 'directly' because the CocoaPods package manager itself isn't used, but we do use XBD to download a Google-published tarball that I suspect Google will stop publishing when they make the switch (e.g., https://dl.google.com/dl/cpdc/33a7ac549361ab23/GoogleMaps-9.2.0.tar.gz)

This shouldn't be a big deal, though, because the essential bits we need from that tarball are just the .xcframework and .bundle files from here.

So, as far as the binding project in this repo is concerned, we should just need to replace the .tar.gz XBD configuration in Maps.targets with the two zip files from above and update some paths in there as needed. Probably less than a dozen lines of XML in the targets file total.

AdamEssenmacher avatar Oct 08 '25 05:10 AdamEssenmacher