Не удается установить модуль карты Google в react-native-map

#react-native #google-maps #cocoapods #react-native-ios #react-native-maps

#react-native #google-карты #cocoapods #react-native-ios #react-native-maps

Вопрос:

У меня возникла проблема с установкой модуля карты Google в react-native-maps. react-native-maps хорошо работает без Google map. Но у меня возникает проблема, когда я добавляю карту Google в проект iOS. Следуйте за моим файлом pod

 require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '10.0'

target 'sa' do

    # React Native Maps dependencies
    rn_maps_path = '../node_modules/react-native-maps'
   pod 'react-native-google-maps', :path => rn_maps_path
   pod 'GoogleMaps'
   pod 'Google-Maps-iOS-Utils'

   pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  target 'saTests' do
    inherit! :complete
    # Pods for testing
  end
end

target 'sa-tvOS' do
  # Pods for sa-tvOS

  target 'sa-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end
end
  

когда я начинаю установку модуля, появляется следующая ошибка:

 JSON::ParserError - 416: unexpected token at '"Example/GoogleMapsDemos/Resources/ne'
  

Следуйте за моей средой:

    CocoaPods : 1.9.3
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.6 (19G73)
       Xcode : 12.0.1 (12A7300)
         Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
  

Я надеюсь на вашу помощь. Спасибо.

Ответ №1:

Проблема в pod. После обновления модуля проблема устранена