[React Native] HYPE 개발 중 부딪힌 각종 Issue Troubleshooting
- 1. iOS Archive시 ld: symbol(s) not found for architecture arm64 오류
- 2. iOS Simulator ⚠ No permission handler detected.
- 3. The engine “node” is incompatible with this module.
- 4. 안드로이드 기기에서 Firebase 자동 문자 인증 이슈
1. iOS Archive시 ld: symbol(s) not found for architecture arm64
오류
npx react-native run-ios 빌드는 되는데 archive에서 터지는 경우
pod cache clean –all - 안됨
Podfile.lock 삭제 후 pod install - 안됨
.xcworkspace 삭제 후 pod install - 안됨
pod install –repo-update - 해결!
2. iOS Simulator ⚠ No permission handler detected.
1 | • Check that you link at least one permission handler in your Podfile. |
퍼미션 핸들러가 감지 안되었다는 에러.
아마 앞의 에러 땜에 ios 폴더 안에 pod 관련 파일들을 다 날리고 reinstall 해줬기에
react-native-permission 라이브러리 사용을 위해 ios에서 설정해주는 게 초기화 돼서 에러 뜨는듯.
https://github.com/zoontek/react-native-permissions
https://velog.io/@adguy/react-native-ios-부분-내용-및-트러블-슛팅
이후 xcode에서 빌드폴더 한번 초기화
3. The engine “node” is incompatible with this module.
먼저 yarn config list 명령을 통해 확인해보자.
ignore-engine 속성이 없는 것 같다..
yarn config set ignore-engines true 로, 엔진 버전과 일치하지 않더라도 커맨드를 진행하게 해버리자.
그리고 다시 yarn config list 를 통해 확인.
정상적으로 추가가 되었다.
4. 안드로이드 기기에서 Firebase 자동 문자 인증 이슈
해결하는데만 총 7일이 걸린 최고로 사악한 이슈다. 진짜 노트북 여러번 부셔질 뻔 했다. 아예 하나의 포스트로 남겨두는게 나을 것 같아서, 여기에서 자세하게 확인할 수 있다.