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?