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

GMSMapView.h file not found #24

Open

Description

@Stroi

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 ?

Activity

  1. MiguelCatalan commented on Apr 7, 2018

    @MiguelCatalan

    Same here.

    Anyone who could make it work?

  2. wilburx9 commented on Apr 9, 2018

    @wilburx9

    Please, any fix for this?

  3. matthewtsmith commented on Apr 16, 2018

    @matthewtsmith
    Member

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

  4. delosssh commented on Apr 29, 2018

    @delosssh

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

  5. Conghdos commented on May 3, 2018

    @Conghdos

    Same here.
    who could make it work?

  6. Ajit121 commented on Jun 1, 2018

    @Ajit121

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

  7. yabsi commented on Jul 1, 2018

    @yabsi

    try to remove use_frameworks! from your Podfile

  8. morad00 commented on Aug 1, 2018

    @morad00

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

  9. diegoveloper commented on Aug 22, 2018

    @diegoveloper

    same issue here

  10. lchinke commented on Aug 23, 2018

    @lchinke

    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!

  11. marticols commented on Sep 14, 2018

    @marticols

    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.

  12. diogoribeiro23 commented on Sep 17, 2018

    @diogoribeiro23

    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!

  13. added 2 commits that reference this issue on Oct 13, 2018
    7ea176f
    2af6baa
  14. anasiqbal commented on Apr 5, 2019

    @anasiqbal

    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!

  15. TheAlphamerc commented on Jun 5, 2019

    @TheAlphamerc

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions