BlackBoxVision / react-native-mercadopago-px

🚀 MercadoPago PX bridge for react-native
https://react-native-mercadopago-px.blackbox-vision.tech
MIT License
104 stars 25 forks source link

Pod install error #88

Open LauColombini opened 1 year ago

LauColombini commented 1 year ago

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
alexsegura commented 9 months ago

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

alexsegura commented 9 months ago

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