일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- javascript
- 배포
- AndroidStudio
- AndroidStuido
- 오류
- Android
- 권한
- ReactNative
- 리액트
- Font
- 코딩
- permission
- PlayStore
- 안드로이드
- 자바스크립트
- 개발자
- error
- 에러
- React
- AppDeveloper
- IOS
- 개발
- 리액트네이티브
- 앱배포
- apk
Archives
- Today
- Total
Jion의 개발일지
[React Native] No Permission handler detected 해결 본문
React Native/오류 모음
[React Native] No Permission handler detected 해결
jion.developer 2022. 2. 8. 14:03SMALL
에러명 : 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
반응형
'React Native > 오류 모음' 카테고리의 다른 글
Comments