googlemaps / google-maps-ios-utils

Google Maps SDK for iOS Utility Library
https://developers.google.com/maps/documentation/ios-sdk/utility/
Apache License 2.0
717 stars 407 forks source link

google-maps-ios-utils preventing iOS app from building both in XCODE and RN command line #401

Closed russmenum closed 3 months ago

russmenum commented 2 years ago

Something is wrong, but I have no clue what.

This library is a co-dependency for using Google Maps with iOS when using react-native-maps I add the code suggested to the Podfile and AppDelegate.m from the documentation

But if I try and build the iOS app either using XCODE or npm run ios I get:

"_swift_willThrow", referenced from:
      GoogleMapsUtils.HeatMapInterpolationPoints.generatePoints(influence: Swift.Double, granularity: Swift.Double) throws -> [__C.GMUWeightedLatLng] in libGoogle-Maps-iOS-Utils.a(HeatMapInterpolationPoints.o)
  "Swift.Array.init() -> [A]", referenced from:
      variable initialization expression of GoogleMapsUtils.HeatMapInterpolationPoints.(data in _085340145A7263942932318178DB6148) : [__C.GMUWeightedLatLng] in libGoogle-Maps-iOS-Utils.a(HeatMapInterpolationPoints.o)
      variable initialization expression of GoogleMapsUtils.HeatMapInterpolationPoints.(heatMapPoints in _085340145A7263942932318178DB6148) : [__C.GMUWeightedLatLng] in libGoogle-Maps-iOS-Utils.a(HeatMapInterpolationPoints.o)
      GoogleMapsUtils.HeatMapInterpolationPoints.init(givenClusterIterations: Swift.Int) -> GoogleMapsUtils.HeatMapInterpolationPoints in libGoogle-Maps-iOS-Utils.a(HeatMapInterpolationPoints.o)
      GoogleMapsUtils.HeatMapInterpolationPoints.(kcluster in _085340145A7263942932318178DB6148)() -> [[__C.CLLocationCoordinate2D]] in libGoogle-Maps-iOS-Utils.a(HeatMapInterpolationPoints.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

There is more documentation in the ticket over there here

But this seems to be an issue with this library and the pod not react-native-maps so they closed the ticket. I have been Googling for days looking for a fix but not finding one. If I remove the Google pods everything runs fine for iOS, but then I am limited to Apple Maps and would prefer and honestly need Google Maps.

If anyone knows what needs to be tweaked in XCODE, or added to the Podfile and or AppDelegate.m so the iOS app can build successfully I am all ears?

jpoehnelt commented 2 years ago

@russmenum Please take a moment to fill out this short survey. Thank you!

This is an automated message, feel free to ignore.

jpoehnelt commented 2 years ago

@russmenum Thank you for opening this issue. 🙏 Please check out these other resources that might be applicable:

This is an automated message, feel free to ignore.

russmenum commented 2 years ago

it seems there is an additional error with the google co-dependencies. On the Intel Mac, pod install can complete, and you get to the above. On an M1 Mac, you can not even complete the pod install with these dependencies.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!

wangela commented 3 months ago

Closing since this seems resolved in https://github.com/react-native-maps/react-native-maps/issues/4183