react-native-mercadopago-px icon indicating copy to clipboard operation
react-native-mercadopago-px copied to clipboard

Pod install error

Open LauColombini opened this issue 1 year ago • 2 comments

RN Version: "0.64.2" Cocapods Version: 1.11.3

Pasa cuando quiero hacer pod install

Y les dejo el error en si:

Screen Shot 2023-06-14 at 12 35 17 PM

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: Screen Shot 2023-06-14 at 12 36 12 PM

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

LauColombini avatar Jun 14 '23 15:06 LauColombini

It's written in the docs, you have to install the cocoapods-user-defined-build-types Ruby gem

alexsegura avatar Oct 02 '23 08:10 alexsegura

But I'm afraid it won't work in any case, see #86

alexsegura avatar Oct 02 '23 08:10 alexsegura