전체 글 (261) 썸네일형 리스트형 React Native: iOS 개발환경 셋팅 # pod install # following Swift pods cannot yet be integrated as static libraries pod install시 아래 오래 발생 [!] The following Swift pods cannot yet be integrated as static libraries:The Swift pod `FirebaseCoreInternal` depends upon `GoogleUtilities`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify.. React Native: iOS 개발 환경 셋팅 # pod install error # dependency were found, but they required a higher minimum deployment target # kakao-login React Native를 통해 Android 앱 개발시, kakao 로그인을 구현하기 위해 kakao-login 라이브러리를 이용했다.iOS에서 cd ios pod install을 진행하는 중에 [!] CocoaPods could not find compatible versions for pod "kakao-login": In Podfile: kakao-login (from `../node_modules/@react-native-seoul/kakao-login`)Specs satisfying the `kakao-login (from `../node_modules/@react-native-seoul/kakao-login`)` dependency were found, but they require.. React Native: iOS 개발환경시 오류 # Error spawn ./gradlew EACCESS # Mac Mac에서 react native 설치후, 관련 프로젝트를 받아서 npx react-native run-android 명령어 실행시 에뮬레이터까지도 잘 켜지는데 아래 오류가 발생 Error: spawn ./gradlew EACCES at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) android/gradlew 실행권한이 없어서 발생한 문제 cd androidchmod +x gradlew 로 실행권한을 줘서 .. React Native: React Devtools 연동하기 React 관련 프로젝트를 편하게 디버깅 할 수 있는 React Devtools를 연동시켜보자 설치npm install -g react-devtools 실행react-devtools 위 명령어를 실행하면 아래와 같은 창이 뜬다.The server is listening on the port 8097 이라는 문구를 볼 수 있다.React devtools와 react native의 Android 프로젝트를 연결해보자 우선 npx react-native run-android를 통해 안드로이드 앱을 개발모드로 실행한다.그리고adb -s 디바이스명 reverse tcp:8097 tcp:8097 또는, 하나의 디바이스만 연결되어 있는 경우 디바이스명을 생략하고adb reverse tcp:8097 tcp:8097 (.. Android 배포: 광고 ID 선언 문제 광고 ID 선언과 관련하여, 광고를 직접적으로 넣은 적이 없어서 사용하지 않음으로 선택했으나, 위 문제가 해결되지 않음 이 문제는 구글 광고를 직접 사용하겠다고 선언하지 않아도, dependency 등으로 구글 광고 ID가 사용되는 경우가 있다.firebase, analytics 등이 사용되었다면, 구글 광고 ID가 사용되고 있다고 한다. android/app/build/gradle의 dependencies에 아래와 같이 firebase-analytics가 사용되고 있다.implementation 'com.google.firebase:firebase-analytics' 따라서 광고 ID 선언을 하지 않는 코드를 삽입할 게 아니라,나의 경우는 광고 ID 선언을 사용한다고 표시하고, 애널리틱스 목적이라고 수.. Android 배포: 이 App Bundle 유형과 연결된 가독화 파일이 없습니다. 난독화된 코드(R8/proguard)를 사용하는 경우.. # Play Console # 경고 해결하기 구글 플레이 콘솔을 통해 Android 앱을 Play Store에 등록하는 과정에서, 위와 같은 경고 오류를 만날 수 있다.해당 문제는 앱을 소비자가 사용하는 것에는 이상이 없으나,난독화된 코드로 앱이 등록이 되었기 때문에, 오류가 발생했을 경우 개발자가 디버깅이 어려울 수 있다는 경고다. 따라서, 난독화된 코드를 해석할 수 있는 가독화 파일을 업로드하라는 의미이다.R8/proguard 의 표기는, 난독화 방식은 R8이나 proguard를 활용하여 진행이 되기 때문에, 위 두가지 방식 중의 하나로 난독화가 된 경우, 그 난독화 시킨 방식과 관련된 가독화 파일을 업로드 하는 것이다. 가독화 파일 생성하기가독화 파일은 bundle을 생성하는 과정에서 얻을 수 있는데, 설정을 변경해주어야 한다. React N.. Android: Play Store Console 앱 등록 시 서명키가 변경 되는 경우 # 카카오 로그인 # 구글 로그인 # kakao # google 카카오로그인과 구글로그인의 경우 android 프로젝트를 식별할 .keystore 파일에서 얻은 키 해시를 등록해서 OAuth2 로그인을 진행 Play Console Cloud에 앱을 등록할 때, 구글에서는 구글 자체에서 생성한 서명키를 사용하기를 권장한다. 이렇게 권장방식대로 하고 카카오, 구글 로그인을 해보면 오류가 나고 진행이 되지 않는다.이는 Play Console에서 받은 앱은 구글에서 생성한 서명키를 사용해야하기 때문이다. 이 서명키를 각각 구글과 카카오에 등록을 해주어야 한다.우선 이 키는 어디있을까? https://play.google.com/console/u/0/developers 에 들어가서 앱을 선택하고, 좌측 탭에서 "설정"의 "앱 서명"으로 들어간다 들어가면 MD5, SHA-1, .. React Native: 여러 request 병렬 처리시, 토큰 refresh 하기 # single-flight # interceptors Axios의 interceptors 기능을 통해 access token을 갱신하는 로직을 구현하는 과정에서,request에서 token이 만료되었을 때 새로운 토큰을 갱신하는 로직을response interceptors에 구현해놓은 상태였다. 그런데, 여러가지의 request를 동시에 병렬적으로 요청하는 로직에서 오류가 발생했다.예를들어 request1, request2, request3가 모두 만료된 토큰을 가지고 실행되었을 때, request1이 refresh_token을 통해 새로운 토큰을 발급받아서 new_access_token과 new_refresh_token을 발급받아서 request를 다시 요청하는 것까지는 문제가 없다. 그런데 request2부터는 access_token을 새로 발급받기 위.. 이전 1 ··· 3 4 5 6 7 8 9 ··· 33 다음