Google Maps Swift Package
Requirements
- iOS 10.0 or later.
- Xcode 12.0 or later.
Build Requirements
- Carthage 0.36.0 or later.
Installation
- Add the following dependency to your project's
Package.swift
.
dependencies: [
.package(url: "https://github.com/YAtechnologies/GoogleMaps-SP.git", .upToNextMinor(from: "4.1.0"))
]
Known Issues
-
If you use a Google Maps Swift package in an app with extensions, the build system incorrectly embeds the binary dependencies alongside the extension in the PlugIns directory, causing validation of the archived app to fail. (69834549) (FB8761306)
Workaround: Add a scheme post-build action which removes the embedded binaries from the PlugIns directory after the build, e.g.
rm -rf "${TARGET_BUILD_DIR}/${TARGET_NAME}.app"/PlugIns/*.framework
.
Building
On the project root directory run the following command:
make_xcframework.sh
This will create a directory named Build
that contains zipped XCFramework
s.
The
checksum
file found inside theBuild
directory contains the SHA-256 checksum of the generatedXCFramework
zip files.
License
The Google Maps iOS SDK and Google Places iOS SDK libraries are the property of Google and are subject to Google's Terms of Service. See LICENSE.google for details.