Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

GMSMapView.h file not found #24

Open
Stroi opened this issue Mar 17, 2018 · 14 comments
Open

GMSMapView.h file not found #24

Stroi opened this issue Mar 17, 2018 · 14 comments

Comments

@Stroi
Copy link

Stroi commented Mar 17, 2018

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 ?

@MiguelCatalan
Copy link

Same here.

Anyone who could make it work?

@wilburx9
Copy link

wilburx9 commented Apr 9, 2018

Please, any fix for this?

@matthewtsmith
Copy link
Member

Try running a flutter clean and flutter build. It looks like the pod install step did not install the google maps framework.

@delosssh
Copy link

did not fixed the issue. now, even removing map_view from dependencies, flutter/xcode failed to compile

@Conghdos
Copy link

Conghdos commented May 3, 2018

Same here.
who could make it work?

@Ajit121
Copy link

Ajit121 commented Jun 1, 2018

Having same issue. Does anyone find solution for this problem?

@yabsi
Copy link

yabsi commented Jul 1, 2018

try to remove use_frameworks! from your Podfile

@morad00
Copy link

morad00 commented Aug 1, 2018

@yabsi I can't find this use_frameworks in my Podfile !

@diegoveloper
Copy link

same issue here

@lchinke
Copy link

lchinke commented 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:/CocoaPods/Specs.git' on the top of file)

Hope it helped!

@marticols
Copy link

marticols commented Sep 14, 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:/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.

@diogoribeiro23
Copy link

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!

kdy1 added a commit to kdy1/flutter_google_map_view that referenced this issue Oct 13, 2018
kdy1 added a commit to kdy1/flutter_google_map_view that referenced this issue Oct 13, 2018
@anasiqbal
Copy link

anasiqbal commented Apr 5, 2019

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:/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!

@TheAlphamerc
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests