file not found Google Maps SDK for iOS

后端 未结 10 1848
故里飘歌
故里飘歌 2020-12-06 19:04

Yesterday I recived an email from google saying that I could acces to the map api for ios, I generated my key from the app console and I follow the steps of https://develope

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-06 19:49

    Its better install Pod for google map, Just add google maps into pod. Note if you don't have pod file in your project folder ios/ then do below steps pod init

    the add below code in your pod file

    platform :ios, '9.0'
    
    target 'YourAppTarget' do
      pod 'GoogleMaps'  # <~~ remove this line if you do not want to support GoogleMaps on iOS
    end
    # pre_install do |installer|
       # copied from https://github.com/CocoaPods/CocoaPods/issues/2926
       # workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
      #  def installer.verify_no_static_framework_transitive_dependencies; end
    # end
    
    target 'YourAppTarget-tvOS' do
    
    end
    

    Do not forget to add AirGoogleMaps to your project directory from node_modules/react-native-maps/lib/ios

提交回复
热议问题