Framework not found GoogleMaps sdk in iOS

后端 未结 12 2044
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 20:14

I want to use google map to existing(not a new one) iPhone project.Now i am using Google map ios sdk and i successfully added google map framework to my project.But i got er

相关标签:
12条回答
  • 2020-12-08 21:09

    I've been struggling with this issue for hours; I'm using CocoaPods, Swift and Xcode 6.1.1. I followed all the steps for including GoogleMaps in my project carefully, tried many different things like removing symbolic links in the downloaded package or manually linking the binaries in build phases or trying #include "GoogleMaps.h", #include "GoogleMaps/GoogleMaps.h" and "#include <GoogleMaps/GoogleMaps.h> in my bridge file, none of that worked... Finally used CocoaPods instead of including the framework myself and it worked! Hope it helps someone out there:

    In the Podfile:

    pod 'Google-Maps-iOS-SDK', '~> 1.9.2'

    And in your Bridge file:

    #import "GoogleMaps.h"

    0 讨论(0)
  • 2020-12-08 21:10

    I solved my issue

    You need to do this

    1. Click on your project (targets)
    2. Click on Build Settings
    3. Under Framework search paths (set your framework path)

    Following information for getting framework search paths

    1. Right click on your framework folder (for ex: GoogleMaps.framework)
    2. select Get info
    3. copy the path from General->where and paste this path in your framework search path (path should contain in single line)

    Good luck

    0 讨论(0)
  • 2020-12-08 21:12

    You can also : - remove GoogleMaps from Podfile - pod install - add GoogleMaps to your Podfile again - pod install

    This solution works for me, you can also check the search paths a well.

    0 讨论(0)
  • 2020-12-08 21:15

    I encountered a scenario in which I had to import a project that was using Google Maps and noticed the same problem - module: "Google Maps" not found. To solve this problem it was necessary to delete Podfile.lock and Podfile folder and re-install the pods again. Good luck !

    0 讨论(0)
  • 2020-12-08 21:17

    my problem was fixed by adding in:

    build settings

    Framework Search Paths

    clickable and add the following lines:

    "${PODS_ROOT}/GoogleMaps/Base/Frameworks"

    "${PODS_ROOT}/GoogleMaps/Maps/Frameworks"

    0 讨论(0)
  • 2020-12-08 21:18

    Maybe it'll be useful for anybody, next steps helped me: 1. Delete "Headers" and "GoogleMaps" folders manually (from the Finder). 2. Run 'pod install' 3. Re-build the project in Xcode.

    0 讨论(0)
提交回复
热议问题