Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Expo 'eject' doesn't add permissions block to iOS Podfile

$
0
0

I'm trying to get iOS project from Expo.I use expo eject. It generates directory, but Podfile doesn't contain permissions block.

When I run react-native run-ios I get the error:

⚠ No permission handler detected.

  • Check that you link at least one permission handler in your Podfile.
  • Uninstall this app, delete your Xcode DerivedData folder and rebuild it.
  • If you use use_frameworks!, follow the workaround guide in the project README.

To avoid this mistake I need to add permissions to Podfile:

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

The question is - May I somehow add permissions to one of configuration files to ask Expo generate permissions block automatically?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>