Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod install error #88

Open
LauColombini opened this issue Jun 14, 2023 · 2 comments
Open

Pod install error #88

LauColombini opened this issue Jun 14, 2023 · 2 comments

Comments

@LauColombini
Copy link

LauColombini commented Jun 14, 2023

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
Copy link
Contributor

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

@alexsegura
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants