google-maps-ios-utils
google-maps-ios-utils copied to clipboard
Google maps utils compiler error in new Xcode Version 15.0.1
I update the xcode to it's latest version and I came up with the following issue
Failed to build module 'GoogleMapsUtils'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)', while this compiler is 'Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)'). Please select a toolchain which matches the SDK.
If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.
@michalakakis Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
- Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
- Open a support case - Get 1:1 support in Cloud Console.
- Discord - chat with other developers
- StackOverflow - use the
google-mapstag
This is an automated message, feel free to ignore.
I'm seeing the same error with the XCFramework. Mine is XCode 15.0.0, so it might just be the swift 5.9 compiler in XCode 15.
Same problem here, XCode 15.0.1 after migrating Google Maps SDK from XCFramework to SPM
I had this issue recently and had to rollback my GoogleMaps to version 8.3.0. I commented it on this thread https://github.com/googlemaps/google-maps-ios-utils/issues/393#issuecomment-1843037835 Today I wanted to try if using SPM would allow me to upgrade to 8.3.1 but no, I have the same issue.
To provide some details, I rolled back again my project to manual installation. The project that compiles successfully has:
- Google Maps 8.1.0
- Google Maps Utils 4.2.2
It's when I try to update to Google Maps version 8.3.0 (manually) or 8.3.1 (SPM) that I get the error Failed to build module 'GoogleMapsUtils'; this SDK is not supported by the compiler.
Same issue to me, but using Xcode 14.3.0 (didn't try Xcode 15 yet).
Any update on this? I'm blocked due to this issue. I'm using Xcode 14.3.0 and I installed the GoogleMaps iOS SDK 8.3.1 through SPM. Installing it through Cocoapods works but I'll would like to use the new SPM support.
Do we have any updates on this issue? The latest release of iOS GoogleMaps SDK is pointless because we cannot use it with the latest Google maps utils.
same problem, when will this be fixed??🫠😤
Same problem here
While https://github.com/googlemaps-samples/maps-sdk-for-ios-samples/issues/70 was solved, can we expect to resolve this issue around Easter? 😉 @wangela
This update and Google Maps as whole is useless and trash. My team is being force to go to native Apple Maps because of all the issues we've had with GMS. Good riddance.
Same problem here.
- XCode 15.2
- Google Maps 8.3.1
- Google Maps Utils 4.2.2
Installing Google Maps through Cocoapods works.
same issue here : Google Maps Utils 4.2.2 installing through SPM
Any updates on this? On December 16 someone from Google said that they were working on this.
While googlemaps-samples/maps-sdk-for-ios-samples#70 was solved, can we expect to resolve this issue around Easter? 😉 @wangela
I don't want to jinx it, but if I look at the rate google fixes, bugs we might still be wating in 2027.
I hope I am wrong...
Temporary solution: Point SPM to this branch https://github.com/googlemaps/google-maps-ios-utils/tree/wangela/8-0-0
Temporary solution: Point SPM to this branch https://github.com/googlemaps/google-maps-ios-utils/tree/wangela/8-0-0
Same issue and same fix.
I tried the branch but it didn't work for me
@alexookah is it possible you have the Google Maps SDK already added to that project either by a custom SP or pod?
The branch being suggested has a dependency on Google Maps and so you might be getting a duplicate copy of the framework.
Yes the only way to have latest google maps sdk with google-maps utils is to have google maps with cocoapods and google-maps utils as spm
@alexookah you can, in my experience at least with this branch of Utils, remove the Google Maps pod and then use the official SPM version of Google Maps of your choice, or just allow the Utils package to manage via its dependency declared in package.swift
My solution is for SPM usage only I guess Utils having dependency on maps is quite warranted, because why would you want it without the maps
any updates on this? For me the branch Vlad provided doesn't work.
any updates or workarounds ?
What appears to work for me now is having both Google Maps and google utils via SPM, BUT instead of using the branch mentioned by @VladOrackle, I used the last commit form this branch, which as of now it's de4e482df1fd729362db91239269e1e92cb0d787
Below you can see my configuration. Maybe it helps someone. Working with the branch itself did not work for me and I still had the same error.
What appears to work for me now is having both Google Maps and google utils via SPM, BUT instead of using the branch mentioned by @VladOrackle, I used the last commit form this branch, which as of now it's
de4e482df1fd729362db91239269e1e92cb0d787Below you can see my configuration. Maybe it helps someone. Working with the branch itself did not work for me and I still had the same error.
![]()
but you need to update it manually every time instead of this you may wrap in your own package and add this as dependency
.package(name: "google-maps-ios-utils", url: "https://github.com/googlemaps/google-maps-ios-utils.git", branch: "wangela/8-0-0")
it updates every time when wangela/8-0-0 branch was updated
I am not sure what you mean, for me when I am using the branch itself, it fails with the error mentioned in this thread. Using the commit is the only working way for me.
`import PackageDescription
let package = Package( name: "YourPackageName", platforms: [.iOS(.v15)], products: [ .library( name: "YourPackageName", targets: ["YourPackageName"]), ], dependencies: [ .package(url: "https://github.com/googlemaps/ios-maps-sdk", .upToNextMinor(from: "8.4.0")), .package(url: "https://github.com/googlemaps/google-maps-ios-utils.git", .branch("wangela/8-0-0")) ], targets: [ .target( name: "YourPackageName", dependencies: [ .product(name: "GoogleMapsUtils", package: "google-maps-ios-utils"), .product(name: "GoogleMaps", package: "ios-maps-sdk"), .product(name: "GoogleMapsCore", package: "ios-maps-sdk"), .product(name: "GoogleMapsBase", package: "ios-maps-sdk") ], path: "Sources/YourPackageName" ), .testTarget( name: "YourPackageNameTests", dependencies: ["YourPackageName"]), ] )`
I mean wrap this packages in one
all packages you need will downloaded automatically
Hi folks, still working on this in PR #444. Our goals are to update the Package to Apple's latest manifest structure, continue supporting CocoaPods, end support for Carthage, right-size version dependencies, and update the build, tests, and release actions based on source instead of binary packaging. It's almost done but there are some tests failing that I need to get resolved before I can be confident that the release will not break folks who install via either SPM or CocoaPods. Building from my branch is risky :)