Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ginnyfahs/eed32384ae99a73e831fbc9be4d43285 to your computer and use it in GitHub Desktop.
Save ginnyfahs/eed32384ae99a73e831fbc9be4d43285 to your computer and use it in GitHub Desktop.
Fixing typos on Podfile for React Native Maps - iOS
# You Podfile should look similar to this file. React Native currently does not support use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
# Change 'AirMapsExplorer' to match the target in your Xcode project.
target 'AirMapsExplorer' do
rn_path = '../node_modules/react-native'
pod 'Yoga', path: "#{rn_path}/ReactCommon/yoga/Yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'BatchedBridge'
]
pod 'GoogleMaps' # Remove this line if you don't want to support GoogleMaps on iOS
pod 'react-native-maps', path: '../'
pod 'react-native-google-maps', path: '../' # If you need GoogleMaps support on iOS
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'react-native-google-maps'
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
if target.name == "React"
target.remove_from_project
end
end
end
@khadkaPratik
Copy link

Hello,
Dont we need

pod 'Google-Maps-iOS-Utils'

Also isn't it
path: rn_maps_path instead of '../'

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