Google在Swift Package Manager添加地图平台SDK支持
· 2023-12-22

Google开始于组件管理工具SPM(Swift Package Manager)提供Google地图平台相关SDK,包括发布iOS用Maps SDK 8.3.1、Places SDK 8.3.0,以及Navigation SDK 5.3.1。随着对SPM的支持,相关文件也跟着更新,移除通过其他组件管理工具安装二进制文件的说明。


Google开始于组件管理工具SPM(Swift Package Manager)提供Google地图平台相关SDK,包括发布iOS用Maps SDK 8.3.1、Places SDK 8.3.0,以及Navigation SDK 5.3.1。随着对SPM的支持,相关文件也跟着更新,移除通过其他组件管理工具安装二进制文件的说明。


不过,官方也提到,除了SPM,开发人员还是可以选择手动添加SDK相依项目,或是通过Swift与Objective-C组件管理工具CocoaPods添加。供开发团队可以依据需求,选择最适合的工作流程和技术堆栈。


这项消息对iOS开发者相对重要,因为SPM是Apple官方推荐的组件管理工具,与开发环境Xcode紧密集成,因此通过支持SPM,开发者便可以更方便地在iOS项目中,添加和管理Google地图、Places和Navigation SDK。


过去在Google地图应用开发上,iOS开发者需要依赖CocoaPods,或是以手动的方式管理相依项目,而加入SPM的支持,将会让这个过程更加自动化,开发者可以直接在Xcode添加和管理SDK,只要指定对应SDK的GitHub存储库URL,即可将组件相依项目添加至iOS项目,进而提高开发方便性和效率。


要让SPM能够支持iOSGoogle地图平台SDK前,需要满足特定的技术要求。首先SPM需要能够支持已编译的二进制文件,特别是以XCFrameworks形式存在的程序代码。XCFrameworks是一种封装格式,用于封装iOS、macOS、watchOS和tvOS编译的应用程序库。此外,SPM还需要能够处理Swift组件中,诸如图像和字符串等非程序代码的资源。


由于SPM的这些改进,现在Google地图平台SDK才得以集成,因为不仅涉及程序代码本身,还包括了SDK执行所需的各种额外资源。Google更新了构建和发布基础设施支持Swift组件发布,同时维持既有CocoaPods和XCFrameworks发布工作流程,并提到,这些变更在发布过程并不会增加任何额外的延迟。


Popular articles
GAT CDMX 2025 Institutional Academy: Leaders and Experts Analyze the Present and Future of the Gaming Industry in Mexico and Lat
Sports Game
Brazil Proposes Raising Gambling Tax Rate to 24%, With Revenue Allocated to Social Security and Healthcare
Regulation
Kazakhstan plans to penalise online casino promotions
Regulation
Gaming & Technology Expo Makes a Powerful Entrance in CDMX
Marketing
Super PAC Raises $48 Million: Sports Betting Forces Ramp Up Political Push
Regulation
SBC Summit Canada to Make Player Safety a Key Pillar of 2026 Agenda
Marketing
JILI Partners with Cricket Legend AB de Villiers (ABD) to Launch Exclusive Branded Game Series 100% 11
Sports Game
1spin4win grows its Latin American presence by partnering with Fortuna Juegos
Online Game
1spin4win releases unique slot Don Catleone Hold and Win featuring gangster cats
Online Game
Vietnam’s Controlled Gaming Shift Gains Ground, But Domestic Demand Still Lags
Southeast Asia
HUIDU Invites You to Booth T70 at iGB L!VE 2026 — Let’s Ignite London This July!
HUIDU Focus
Vietnam's tightening online gaming policy creates new market opportunities
Southeast Asia
PropellerAds Shared a New iGaming Case Study: 97,674 Installs and 12,701 Deposits in 3 Months
Marketing
UK MPs reopen 2025 gambling inquiry as reform stalls
Regulation
GGC Awards 2026 Shines in Colombo: Honoring Leaders and Innovators in the iGaming Industry
HUIDU Focus
Home
Game
Cooperation
Find
My