Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google maps utils compiler error in new Xcode Version 15.0.1 #458

Open
michalakakis opened this issue Dec 9, 2023 · 38 comments
Open

Google maps utils compiler error in new Xcode Version 15.0.1 #458

michalakakis opened this issue Dec 9, 2023 · 38 comments
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@michalakakis
Copy link

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.

@michalakakis michalakakis added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Dec 9, 2023
@wangela
Copy link
Member

wangela commented Dec 9, 2023

If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 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:

This is an automated message, feel free to ignore.

@michalakakis michalakakis changed the title Google maps utils erron in new Xcode Version 15.0.1 Google maps utils compiler error in new Xcode Version 15.0.1 Dec 11, 2023
@markemer
Copy link

markemer commented Dec 11, 2023

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.

@piotrsmajek
Copy link

Same problem here, XCode 15.0.1 after migrating Google Maps SDK from XCFramework to SPM

@lluisgerard
Copy link

I had this issue recently and had to rollback my GoogleMaps to version 8.3.0. I commented it on this thread #393 (comment)
Today I wanted to try if using SPM would allow me to upgrade to 8.3.1 but no, I have the same issue.

@lluisgerard
Copy link

lluisgerard commented Dec 15, 2023

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.

@wangela wangela added priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. and removed triage me I really want to be triaged. labels Dec 22, 2023
@federicopolesello
Copy link

federicopolesello commented Dec 29, 2023

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.

image

@andyzaharia
Copy link

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.

@Bilalyyy
Copy link

Bilalyyy commented Jan 8, 2024

same problem, when will this be fixed??🫠😤

@chanffdavid
Copy link

Same problem here

@twprzybysz
Copy link

twprzybysz commented Jan 16, 2024

While googlemaps-samples/maps-sdk-for-ios-samples#70 was solved, can we expect to resolve this issue around Easter? 😉 @wangela

@RSady
Copy link

RSady commented Jan 16, 2024

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.

@WonKimGoRevel
Copy link

Same problem here.

  • XCode 15.2
  • Google Maps 8.3.1
  • Google Maps Utils 4.2.2

Installing Google Maps through Cocoapods works.

@Mohsenkhodadadzadehthelist

same issue here :
Google Maps Utils 4.2.2
installing through SPM

@MohammadJahirul
Copy link

Screenshot 2024-02-06 at 11 52 30 AM

@lluisgerard
Copy link

Any updates on this? On December 16 someone from Google said that they were working on this.

@Jodebjo
Copy link

Jodebjo commented Feb 26, 2024

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...

@VladOrackle
Copy link

Temporary solution:
Point SPM to this branch https://github.com/googlemaps/google-maps-ios-utils/tree/wangela/8-0-0

@jrodriguer
Copy link

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.

@alexookah
Copy link

I tried the branch but it didn't work for me

Screenshot 2024-03-06 at 22 38 24

@dsmailes
Copy link

dsmailes commented Mar 7, 2024

@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.

@alexookah
Copy link

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

@dsmailes
Copy link

dsmailes commented Mar 7, 2024

@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

@VladOrackle
Copy link

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

@ungurmaria
Copy link

any updates on this? For me the branch Vlad provided doesn't work.

@Kvadroman
Copy link

any updates or workarounds ?

@ungurmaria
Copy link

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.

Screenshot 2024-03-11 at 12 33 38

@Kvadroman
Copy link

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.

Screenshot 2024-03-11 at 12 33 38

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

@ungurmaria
Copy link

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.

@Kvadroman
Copy link

`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

Снимок экрана 2024-03-11 в 23 24 41

all packages you need will downloaded automatically

@wangela
Copy link
Member

wangela commented Mar 14, 2024

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 :)

@ungurmaria
Copy link

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 :)

Thanks for the response. Any estimate on when this will be merged? Would be really great to have support for SPM 🙇🏻

@michalakakis
Copy link
Author

michalakakis commented Mar 14, 2024 via email

@salvatoreboemia
Copy link

Hi, any news on this topic?

when I install GoogleMaps and Places as SPM, GoogleMapsUtils (SPM) stop workings and I got the same error

@lluisgerard
Copy link

The branch https://github.com/googlemaps/google-maps-ios-utils/tree/wangela/8-0-0 hasn't been updated in 2 months... how safe it is to use on production?

I recently bumped my iOS version and I get another error now (Invalid Bundle), I need to fix this because of crashes on another dependency (I also suspect crashes on GoogleMaps that I don't get reports for).

@madswesti
Copy link

An update on the progress would be much appreciated @wangela

@piotrsmajek
Copy link

After 1 May it cans block release of our app... any update? @wangela

@salvatoreboemia
Copy link

Nothing works well in google maps / places / utils

@piotrsmajek
Copy link

I tried google maps and google maps utils as xcframework and I have the same issue.

XCode 15.2
Google Maps Utils version - 4.2.2
Google Maps - 8.5.0

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests