▶︎ iOS/react-native
[ios_에러해결] pod install 명령어 이슈
다람트리
2025. 2. 17. 11:32
반응형
▼ 스팩
Apple Silicon: M1
mac OS: Sequoia 15.3
react: 16.9.0
react-native-cli: 2.0.1
react-native: 0.62.2
Xcode: 16.2 (16C5032a)
pod: 1.16.2
nvm: 0.39.1
node: 14.21.3
npm: 6.14.18
▼ 이슈내용
pod install을 명령했더니 아래와 같은 에러문구가 발생하였다
▼ 에러내용
Detected React Native module pods for RNDeviceInfo, RNFS, RNGestureHandler, RNImageCropPicker, RNImageMarker, RNReanimated, RNSVG, RNScreens, RNSketchCanvas, RNVectorIcons, react-native-camera, react-native-cameraroll, react-native-get-random-values, react-native-image-resizer, react-native-webview, and rn-fetch-blob
Analyzing dependencies
[!] No podspec found for 'Permission-Camera' in '../node_modules/react-native-permissions/ios/Camera.podspec*
▼ 이슈 해결방법
▼ ios/Podfile
target 'daramApp' do # Permissions (퍼미션 요청을 위한 코드 추가)
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'RNPermissions', :path => '../node_modules/react-native-permissions'
# pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec" #-> 기존경로
pod 'Permission-Camera', :path => "#{permissions_path}/Camera" #-> 수정된경로
end
기존에는 경로가 Camera.podspec 였는데, Camera로 수정해주었다.
* 참고링크: https://github.com/zoontek/react-native-permissions/releases/tag/3.0.0
Release 3.0.0 · zoontek/react-native-permissions
Version 3.0.0, with iOS 14, Android 11 and Windows support 🎉 What's new Windows support (#530 by @bzoz) Android 11 support iOS 14 support added, iOS 9 support dropped Updated example app New iOS 1...
github.com
▼ 이슈해결된 사진
pod install하였더니 정상적으로 작동하였다.
반응형