Skip to content

Instantly share code, notes, and snippets.

@hdsenevi
Created January 22, 2019 19:17
Show Gist options
  • Save hdsenevi/ebe4d3423e228f1e5cff230bd3aae150 to your computer and use it in GitHub Desktop.
Save hdsenevi/ebe4d3423e228f1e5cff230bd3aae150 to your computer and use it in GitHub Desktop.
Podfile that has an issue in it
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
install! 'cocoapods', :deterministic_uuids => false
target 'OUR_PROJECT_NAME' do
pod 'AppCenter/Crashes', '~> 1.9.0'
pod 'AppCenter/Analytics', '~> 1.9.0'
pod 'AppCenterReactNativeShared', '~> 1.8.1'
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
pod 'react-native-config', :path => '../node_modules/react-native-config'
# platform :ios, '9.0'
# React Native requirements
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTNetwork',
'RCTWebSocket', # Needed for debugging
'RCTAnimation', # Needed for FlatList and animations running on native UI thread
# Add any other subspecs you want to use in your project
]
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'AppCenter/Distribute'
# CodePush plugin dependency
pod 'CodePush', :path => '../node_modules/react-native-code-push'
# Charts plugin dependency
pod 'SwiftyJSON', '4.0.0'
pod 'Charts', '3.1.1'
pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
target 'OUR_PROJECT_NAME_Tests' do
inherit! :search_paths
# Pods for testing
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment