You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 25, 2019. It is now read-only.
When I try to run on iOS I get this error message:
map_view-0.0.10/ios/Classes/MapViewController.h:10:9: fatal error: 'GoogleMaps/GoogleMaps/GMSMapView.h' file not found
#import <GoogleMaps/GoogleMaps/GMSMapView.h>
Any idea why is the file missing ?
Reacted by pepix, Miguel Catalan Bañuls, Wilberforce Uwadiegwu , Yopi Angi, Diego Velásquez and Simon
Hi people! Replace #import <GoogleMaps/GoogleMaps/GMSMapView.h> with #import <GoogleMaps/GoogleMaps.h> and it will work fine!
Remember to update cocoapods with pod update. Also add "s.static_framework = true" to map_view.podspec file. I also added 'GoogleMaps' & 'GooglePlaces' pods to my Podfile (with source 'https://github.com/CocoaPods/Specs.git' on the top of file)
Hope it helped!
Reacted by Simon, Martí Cols, Anton Fenske, Ashim Lamichhane, Alessandro Ornano and rohwedjm
Reacted by Martí Cols, Alessandro Ornano and rohwedjm
Reacted by Martí Cols, Alessandro Ornano and rohwedjm
Hi people! Replace #import <GoogleMaps/GoogleMaps/GMSMapView.h> with #import <GoogleMaps/GoogleMaps.h> and it will work fine!
Remember to update cocoapods with pod update. Also add "s.static_framework = true" to map_view.podspec file. I also added 'GoogleMaps' & 'GooglePlaces' pods to my Podfile (with source 'https://github.com/CocoaPods/Specs.git' on the top of file)
Hope it helped!
Thanks bro !! I just needed to add s.static_framework = true at ios/.symlinks/plugins/map_view/ios/map_view.podspec and everything works ok.
Hi @matthewtsmith. Could you please take a look at this? I think the problem is that people are using this temporary fix: flutter/flutter#16049 which allows swift written plugins to be used in Objective-C projects. But that results in the issue reported here. Is there any less "hacky" solution?
Thanks!
Hi people! Replace #import <GoogleMaps/GoogleMaps/GMSMapView.h> with #import <GoogleMaps/GoogleMaps.h> and it will work fine!
Remember to update cocoapods with pod update. Also add "s.static_framework = true" to map_view.podspec file. I also added 'GoogleMaps' & 'GooglePlaces' pods to my Podfile (with source 'https://github.com/CocoaPods/Specs.git' on the top of file)
Hope it helped!
This solution works If I am building manually on my Mac. but I can;t find a way around it when I am using some build automation platform like codemagic.io.
One alternate way is for me to for the repo, change the include path in MapViewController.h, and then use my own github repo path to import the package.
Can anyone please provide a solution? Would it not be better if the devs of this package update it themselves.
Thanks!
Hi people! Replace #import <GoogleMaps/GoogleMaps/GMSMapView.h> with #import <GoogleMaps/GoogleMaps.h> and it will work fine!
Remember to update cocoapods with pod update. Also add "s.static_framework = true" to map_view.podspec file. I also added 'GoogleMaps' & 'GooglePlaces' pods to my Podfile (with source 'https://github.com/CocoaPods/Specs.git' on the top of file)
Hope it helped!
Works fine for me . I have to replace #import <GoogleMaps/GoogleMaps/GMSMapView.h> with #import <GoogleMaps/GoogleMaps.h> and it works.
Activity
MiguelCatalan commentedon Apr 7, 2018
Same here.
Anyone who could make it work?
wilburx9 commentedon Apr 9, 2018
Please, any fix for this?
matthewtsmith commentedon Apr 16, 2018
Try running a
flutter cleanandflutter build. It looks like the pod install step did not install the google maps framework.delosssh commentedon Apr 29, 2018
did not fixed the issue. now, even removing map_view from dependencies, flutter/xcode failed to compile
Conghdos commentedon May 3, 2018
Same here.
who could make it work?
Ajit121 commentedon Jun 1, 2018
Having same issue. Does anyone find solution for this problem?
yabsi commentedon Jul 1, 2018
try to remove use_frameworks! from your Podfile
morad00 commentedon Aug 1, 2018
@yabsi I can't find this use_frameworks in my Podfile !
diegoveloper commentedon Aug 22, 2018
same issue here
lchinke commentedon Aug 23, 2018
Hi people! Replace #import <GoogleMaps/GoogleMaps/GMSMapView.h> with #import <GoogleMaps/GoogleMaps.h> and it will work fine!
Remember to update cocoapods with pod update. Also add "s.static_framework = true" to map_view.podspec file. I also added 'GoogleMaps' & 'GooglePlaces' pods to my Podfile (with source 'https://github.com/CocoaPods/Specs.git' on the top of file)
Hope it helped!
marticols commentedon Sep 14, 2018
Thanks bro !! I just needed to add s.static_framework = true at ios/.symlinks/plugins/map_view/ios/map_view.podspec and everything works ok.
diogoribeiro23 commentedon Sep 17, 2018
Hi @matthewtsmith. Could you please take a look at this? I think the problem is that people are using this temporary fix: flutter/flutter#16049 which allows swift written plugins to be used in Objective-C projects. But that results in the issue reported here. Is there any less "hacky" solution?
Thanks!
Fixes apptreesoftware#24
fixup! Fixes apptreesoftware#24
anasiqbal commentedon Apr 5, 2019
This solution works If I am building manually on my Mac. but I can;t find a way around it when I am using some build automation platform like codemagic.io.
One alternate way is for me to for the repo, change the include path in
MapViewController.h, and then use my own github repo path to import the package.Can anyone please provide a solution? Would it not be better if the devs of this package update it themselves.
Thanks!
TheAlphamerc commentedon Jun 5, 2019
Works fine for me . I have to replace
#import <GoogleMaps/GoogleMaps/GMSMapView.h>with#import <GoogleMaps/GoogleMaps.h>and it works.