Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.4K
Views
Console.error: no se detectó ningún controlador de permisos. (React Native)

Estoy codificando una aplicación nativa de reacción simple y recibo un error de consola cuando ejecuto la aplicación. Dice que no se detectó ningún controlador de permisos y me dice que siga algunos pasos. Pero no sé cómo hacer estos pasos, y si no funcionan, no sé cómo resolver el problema.

Aquí está el error:

ingrese la descripción de la imagen aquí

Aquí está el archivo pod:

 platform :ios, '9.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' def add_flipper_pods!(versions = {}) versions['Flipper'] ||= '~> 0.33.1' versions['DoubleConversion'] ||= '1.1.7' versions['Flipper-Folly'] ||= '~> 2.1' versions['Flipper-Glog'] ||= '0.3.6' versions['Flipper-PeerTalk'] ||= '~> 0.0.4' versions['Flipper-RSocket'] ||= '~> 1.0' pod 'FlipperKit', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FlipperKitLayoutPlugin', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/SKIOSNetworkPlugin', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FlipperKitUserDefaultsPlugin', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FlipperKitReactPlugin', versions['Flipper'], :configuration => 'Debug' # List all transitive dependencies for FlipperKit pods # to avoid them being linked in Release builds pod 'Flipper', versions['Flipper'], :configuration => 'Debug' pod 'Flipper-DoubleConversion', versions['DoubleConversion'], :configuration => 'Debug' pod 'Flipper-Folly', versions['Flipper-Folly'], :configuration => 'Debug' pod 'Flipper-Glog', versions['Flipper-Glog'], :configuration => 'Debug' pod 'Flipper-PeerTalk', versions['Flipper-PeerTalk'], :configuration => 'Debug' pod 'Flipper-RSocket', versions['Flipper-RSocket'], :configuration => 'Debug' pod 'FlipperKit/Core', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/CppBridge', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FBCxxFollyDynamicConvert', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FBDefines', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FKPortForwarding', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FlipperKitHighlightOverlay', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FlipperKitLayoutTextSearchable', versions['Flipper'], :configuration => 'Debug' pod 'FlipperKit/FlipperKitNetworkPlugin', versions['Flipper'], :configuration => 'Debug' end # Post Install processing for Flipper def flipper_post_install(installer) installer.pods_project.targets.each do |target| if target.name == 'YogaKit' target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '4.1' end end end end target 'LocalMainStreet' do # Pods for LocalMainStreet pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec" pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired" pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety" pod 'React', :path => '../node_modules/react-native/' pod 'React-Core', :path => '../node_modules/react-native/' pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules' pod 'React-Core/DevSupport', :path => '../node_modules/react-native/' pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/' pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon" pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon" pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true 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 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler' target 'LocalMainStreetTests' do inherit! :complete # Pods for testing end use_native_modules! # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable these next few lines. add_flipper_pods! post_install do |installer| flipper_post_install(installer) end end target 'LocalMainStreet-tvOS' do # Pods for LocalMainStreet-tvOS target 'LocalMainStreet-tvOSTests' do inherit! :search_paths # Pods for testing end end

Por favor ayuda. Gracias.

over 4 years ago · Santiago Trujillo
9 answers
Answer question

0

Solo tiene que instalar RN Permissions y realizar cambios en podfile e info.plist. Dependiendo de para qué necesite los permisos, obtendrá los pods. Si no estás seguro, hazlos todos. Puede encontrar el código en https://www.npmjs.com/package/react-native-permissions . También hay algunas otras cosas que puede tener que hacer, de las que no hablé pero que están en la documentación de npm en el enlace.

Gracias a @Raghav Herugu por ayudarme a resolver el problema.

over 4 years ago · Santiago Trujillo Report

0

Estaba teniendo el mismo problema con React Native 0.63.2 .

La solución fue

1 - para actualizar mi versión de cocopods con

 sudo gem install cocoapods --pre

2 - elimine el siguiente código de mi archivo pod

 pre_install do |installer| installer.pod_targets.each do |pod| if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-') def pod.build_type; # Uncomment one line depending on your CocoaPods version Pod::BuildType.static_library # >= 1.9 #Pod::Target::BuildType.static_library # < 1.9 end end end end

Después de eso, hice una instalación de pod y todo volvió a funcionar.

over 4 years ago · Santiago Trujillo Report

0

Por el momento, su Podfile no está configurado para manejar permisos. En su Podfile debajo de su objetivo, agregue las líneas de código relevantes para los permisos que está solicitando:

 target 'LocalMainStreet' do # react-native-permissions permission handlers permissions_path = '../node_modules/react-native-permissions/ios' pod 'Permission-AppTrackingTransparency', :path => "#{permissions_path}/AppTrackingTransparency.podspec" pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral.podspec" pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars.podspec" pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec" pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts.podspec" pod 'Permission-FaceID', :path => "#{permissions_path}/FaceID.podspec" pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways.podspec" pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse.podspec" pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary.podspec" pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec" pod 'Permission-Motion', :path => "#{permissions_path}/Motion.podspec" pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications.podspec" pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary.podspec" pod 'Permission-Reminders', :path => "#{permissions_path}/Reminders.podspec" pod 'Permission-Siri', :path => "#{permissions_path}/Siri.podspec" pod 'Permission-SpeechRecognition', :path => "#{permissions_path}/SpeechRecognition.podspec" pod 'Permission-StoreKit', :path => "#{permissions_path}/StoreKit.podspec" end

Puede leer más sobre esto en el repositorio de permisos de react-native .

over 4 years ago · Santiago Trujillo Report

0

Tuve el mismo problema porque olvidé hacer:

 npx pod-install //or cd ios pod-install
over 4 years ago · Santiago Trujillo Report

0

El camino cambió. Ahora esta bien. Vea abajo:

 # permissions pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral/Permission-BluetoothPeripheral.podspec" pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars/Permission-Calendars.podspec" pod 'Permission-Camera', :path => "#{permissions_path}/Camera/Permission-Camera.podspec" pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts/Permission-Contacts.podspec" pod 'Permission-FaceID', :path => "#{permissions_path}/FaceID/Permission-FaceID.podspec" pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways/Permission-LocationAlways.podspec" pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse/Permission-LocationWhenInUse.podspec" pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary/Permission-MediaLibrary.podspec" pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone/Permission-Microphone.podspec" pod 'Permission-Motion', :path => "#{permissions_path}/Motion/Permission-Motion.podspec" pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications/Permission-Notifications.podspec" pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary/Permission-PhotoLibrary.podspec" pod 'Permission-Reminders', :path => "#{permissions_path}/Reminders/Permission-Reminders.podspec" pod 'Permission-Siri', :path => "#{permissions_path}/Siri/Permission-Siri.podspec"
over 4 years ago · Santiago Trujillo Report

0

Han mencionado este problema en la documentación y también sugirieron una solución para el mismo y funciona. Borrar el caché de Xcode funcionó para mí :)

Solución:

Si ve un error No se detectó el controlador de permisos: asegúrese de tener al menos un controlador de permisos configurado. En algunos casos, es necesario borrar la memoria caché de Xcode (Xcode -> Producto -> Limpiar carpeta de compilación)

over 4 years ago · Santiago Trujillo Report

0

iOS

De forma predeterminada, no se instala ningún controlador de permisos. Actualice su Podfile eligiendo los que desea verificar o solicitar, luego ejecute pod install .

 target 'YourAwesomeProject' do # … permissions_path = '../node_modules/react-native-permissions/ios' pod 'Permission-AppTrackingTransparency', :path => "#{permissions_path}/AppTrackingTransparency" pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral" pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars" pod 'Permission-Camera', :path => "#{permissions_path}/Camera" pod 'Permission-Contacts', :path => "#{permissions_path}/Contacts" pod 'Permission-FaceID', :path => "#{permissions_path}/FaceID" pod 'Permission-LocationAccuracy', :path => "#{permissions_path}/LocationAccuracy" pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways" pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse" pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary" pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone" pod 'Permission-Motion', :path => "#{permissions_path}/Motion" pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications" pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary" pod 'Permission-PhotoLibraryAddOnly', :path => "#{permissions_path}/PhotoLibraryAddOnly" pod 'Permission-Reminders', :path => "#{permissions_path}/Reminders" pod 'Permission-Siri', :path => "#{permissions_path}/Siri" pod 'Permission-SpeechRecognition', :path => "#{permissions_path}/SpeechRecognition" pod 'Permission-StoreKit', :path => "#{permissions_path}/StoreKit" end
over 4 years ago · Santiago Trujillo Report

0

Se agregaron estos en podFile

 permissions_path = '../node_modules/react-native-permissions/ios' pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways/Permission-LocationAlways.podspec" pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse/Permission-LocationWhenInUse.podspec"

Luego ejecute pod install Para mí esto funcionó.

over 4 years ago · Santiago Trujillo Report

0

En tus node_modules

vaya a este archivo -> react-native-permission , luego busque el archivo RNPermissions.m (podría estar dentro de la carpeta ios)

En este archivo, busque "No se detectó ningún controlador de permisos" y comente esta línea "RCTLogError(@"%@", mensaje)"

Entonces estás listo para irte por ahora.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!