-
Notifications
You must be signed in to change notification settings - Fork 9
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
GoogleMaps SPM integration: Error: module 'GoogleMaps' not found #10
Comments
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.@FrankWuoO Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
Can you please clean build folder, clean, and build from Xcode first and let us know if you can successfully build and run your app on Xcode first? |
I just verified with both Xcode 14.0.1 and 14.2 that the Swift package for GoogleMaps works properly. Please make sure you follow the steps from https://developers.google.com/maps/documentation/ios-sdk/config#swift-package-manager and let me know what's the error that you are encountering? |
We use xcode 15 locally, but Xcode 14.2 on CI (azure)....on the server, it is now failing consistently. It used to work every once in a while (failing more times than not) but now, since I changed the SPM cache key, which is forcing a rebuild of all SPM packages, it fails every time. I feel like the builds that were succeeding may have been picking up the binary from cocoapods cache. Just a theory. I even tried pinning to 8.3.1...same error
We can't quite switch to xcode 15 on CI because of ongoing performance issues with xcode and running tests. I feel like "@import GoogleMaps" in the dummy files is causing this issue. And I'm not entirely convinced it's needed. |
We experience the same issue. Ended up making a fork and replacing |
Flutter is experiencing the same issue: flutter/packages#6639 (comment) So I believe this is a race condition, which is why it doesn't always occur. This applies to If you look at Line 17 in bd392d7
However, it does not have a dependency on the Lines 64 to 70 in bd392d7
Therefore, Swift Package Manager/Xcode may possibly compile sources from FYI: You can view the build timeline like above screenshot in Xcode via Editor > Assistant I believe solution would be to add either |
@vashworth @FrankWuoO Is this still occurring for you with Maps SDK for iOS v9.x? When upgrading versions, note the special instructions about removing the GoogleMapsBase, GoogleMapsCore, and GoogleMapsM4B frameworks. |
@wangela I haven't tested it yet (because it would take a lot of time to test all of this and then revert it back), but I'm not sure how using v9.x would've solved it?
|
@wangela Sorry for the late reply. I switched to the native MapKit, so I haven’t tested it since then. |
Environment details
14.2
8.4.0
via SPM2.219.0
iPhoneOS16.2.sdk
Steps to reproduce
** BUILD FAILED **
Screenshot
The text was updated successfully, but these errors were encountered: