bmabir17 / google_maps_flutter_heatmap

google_maps_flutter_heatmap
BSD 3-Clause "New" or "Revised" License
8 stars 24 forks source link

Build issue on iOS #1

Open Alystrasz opened 4 years ago

Alystrasz commented 4 years ago

Hello, I would like to use heatmaps on my Flutter app, that's why I'm trying to use your fork.

They work well on Android, but not on iOS. When building the app, Xcode throws 'Google-Maps-iOS-Utils/GMUHeatmapTileLayer.h' file not found in GoogleMapHeatmapController.h.

When replacing the import with #import "GMUHeatmapTileLayer.h", Xcode throws:

Include of non-modular header inside framework module 'google_maps_flutter_heatmap.GoogleMapHeatmapController': '/Users/spirals/Library/Developer/Xcode/DerivedData/Runner-axcithruvnzhhsgmqorctsqkpxgk/Build/Products/Debug-iphonesimulator/Google-Maps-iOS-Utils/GoogleMapsUtils.framework/Headers/GMUHeatmapTileLayer.h'

Since I'm a total beginner in iOS development, I have no idea what's going on 😭

bmabir17 commented 4 years ago

I am sorry that unfortunately, I don't have any iOS device to test the package on. :cry:

jml0123 commented 4 years ago

Hi @bmabir17 any updates on this? GMUHeatmapTileLayer.h definitely exists. The actual path within ios folder is "../Pods/Google-Maps-iOS-Utils/src/Heatmap/GMUHeatmapTileLayer.h'.

I even tried to import the Google-Maps-iOS-Utils in Podfile pod 'Google-Maps-iOS-Utils', :git => "https://github.com/googlemaps/google-maps-ios-utils" but I am getting the file not found error

jml0123 commented 4 years ago

Btw, you can emulate an iOS device in android studio via XCode's simulator.

bmabir17 commented 4 years ago

Don't have a mac, have to buy one to run the simulator :(

BhupinderRana commented 3 years ago

i fixed ios build issue https://github.com/BhupinderRana/google_maps_flutter_heatmap but heat map not show in ios

aikenahac commented 3 years ago

Any updates on this. @BhupinderRana the repository could not be found....

catmaomao commented 3 years ago

anyone resolve this issue? i have the same problem. i replace Google-Maps-iOS-Utils with GoogleMapsUtils then it can build,but nothing show on heatmap.i want to cry...

aikenahac commented 3 years ago

Haha, my product launch relies on this to work. I'll figure it out and let you know if/when I do.

aikenahac commented 3 years ago

@catmaomao my fork works on my project on iOS, so I suggest you check it out.

aikenahac commented 3 years ago

If you don't know how to put a Git repository as a package into pubspec, here you go.

google_maps_flutter_heatmap:
    git:
      url: https://github.com/aikenahac/google_maps_flutter_heatmap.git
      ref: master

Edit: You should properly format it when inserting, as .yaml is sensitive to proper indentation.

bmabir17 commented 3 years ago

@aikenahac So you applied the solution by @BhupinderRana . Does it resolves the build issue and show heatmap properly? If so I will merge the https://github.com/bmabir17/google_maps_flutter_heatmap/pull/4 and push a package update on pubspec.

aikenahac commented 3 years ago

@bmabir17 yes, I did that as I think his fork, or a similar was removed. So far it works, I will test it again today to be sure, and let you know in the next 2 hours.

aikenahac commented 3 years ago

Testing now

aikenahac commented 3 years ago

@bmabir17 finished testing, it fixes the build issues, but the heatmaps are not displayed...

bmabir17 commented 3 years ago

@aikenahac oh, That's unfortunate. :cry:

aikenahac commented 3 years ago

Yeah, I'll try to further investigate this issue when I have the time.