react-native-mercadopago-px
react-native-mercadopago-px copied to clipboard
Pod install error
RN Version: "0.64.2" Cocapods Version: 1.11.3
Pasa cuando quiero hacer pod install
Y les dejo el error en si:
String:
zehto@MacBook-Pro-de-Zehto ios % pod install
[!] Invalid `Podfile` file: undefined method `enable_user_defined_build_types!' for #<Pod::Podfile:0x000000010763fe90 @defined_in_file=#<Pathname:/Users/zehto/Desktop/Proyecto/ios/Podfile>, @internal_hash={"plugins"=>{"cocoapods-user-defined-build-types"=>{}}}, @root_target_definitions=[#<Pod::Podfile::TargetDefinition label=Pods>], @current_target_definition=#<Pod::Podfile::TargetDefinition label=Pods>>.
from /Users/zehto/Desktop/ios/Podfile:3
-------------------------------------------
enable_user_defined_build_types!
-------------------------------------------
Y el Podfile:
String:
plugin 'cocoapods-user-defined-build-types'
enable_user_defined_build_types!
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 'rnwithapollopoc' do
config = use_native_modules!
pod 'MercadoPagoSDK', :build_type => :dynamic_framework
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# use_flipper!()
post_install do |installer|
react_native_post_install(installer)
end
end
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '>= 3.0', '< 4.0'
end
It's written in the docs, you have to install the cocoapods-user-defined-build-types
Ruby gem
But I'm afraid it won't work in any case, see #86