Jion의 개발일지

[React Native] No Permission handler detected 해결 본문

React Native/오류 모음

[React Native] No Permission handler detected 해결

jion.developer 2022. 2. 8. 14:03
SMALL

 

 

 

 

 

 

 

 

 

 

에러명 : No Permission handler detected

원인 : iOS에서 react native permission 권한을 인식하지 못 해 발생

해결 :

1. appname > ios > Podfile에 해당문 추가

(저는 카메라 라이브러리를 사용하려고 카메라 permission을 부여하였습니다. 권한이 필요한 라이브러리를 path에 맞게 추가하시면 됩니다.)

permissions_path = '../node_modules/react-native-permissions/ios'

pod 'Permission-Camera', :path => "../node_modules/react-native-permissions/ios/Camera"

2. 권한 라이브러리 설치

npm i react-native-permissions

3. appname > ios > appname > info.plist에 해당문 추가

<key>NSCameraUsageDescription</key>

<string>QR 스캔을 위한 카메라 권한이 필요합니다.</string>

4. pod 설치

cd ios && pod install

5. iOS 재실행

react-native run-ios

 

SMALL

 

참고

https://github.com/zoontek/react-native-permissions/issues/449

 

No Permission Handler Detected (IOS) · Issue #449 · zoontek/react-native-permissions

Bug After I have tried to install react-native-permissions package, I have faced with this error on IOS Simulator. I ignored it but it also prevented to test app on testflight. Error ⚠ No permissio...

github.com

 

반응형
Comments