728x90
반응형
사실 3년 좀 넘게 RN을 통해 앱을 개발하면서,
종종 겪는 에러였다.
ios는 뭔가 android보다 항상 좀더 까다로운 느낌을 받는다.
IOS에서는 https 만 사용할 수 있도록 보안정책이 되어있기때문에
현재 http로 시작하는 api를 따로 설정해줘야한다
최종 info.plist는
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>api.base.url</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
728x90
반응형
'ReactNative' 카테고리의 다른 글
[ React Native ] Xcode 무한 인덱싱 : indexing processing files (0) | 2023.07.06 |
---|---|
[ React Native ] 오래된 library들의 compile ' ... , runtime ' ... 등 (0) | 2023.06.26 |
[ React Native ] react-native-config ios 세팅하기 (0) | 2023.06.19 |
[ React Native ] yarn ios 빌드중 Debug-iphoneos/YogaKit/YogaKit.modulemap not found 에러 (0) | 2023.06.16 |
[ React Native ] .env 파일로 config 세팅하기 react-native-config (0) | 2023.06.07 |