본문 바로가기

728x90
반응형

전체 글

(256)
React Native: iOS 네이버 로그인 # react-native-seoul/naver-login # .env # AppDelegate.mm import 문제 React Native iOS에 네이버 로그인 구현을 위해 react-native-seoul/naver-login 라이브러리를 이용하려고 한다. github repo: https://github.com/crossplatformkorea/react-native-naver-login 사용 방법은 위 깃허브의 README를 잘 읽어보고 하면 된다. 이 포스팅에서는 위 라이브러리를 적용하면서 발생한 이슈와 .env 파일을 사용하는 방법에 대해서 서술 1. ios/project명/AppDelegate.mm import 문제#import 공식 문서에서 ios/프로젝트명/AppDelegate에 위와 같이 import 하고 설정을 추가하도록 되어있다. 모든 설정을 마치고 XCode에서 빌드시 내가 마주한 에러는 다음과..
React Native: iOS 구글 로그인 # url schema # client id React Native를 통해 iOS 구글 로그인 구현 react-native-google-signin/google-signin 위 라이브러리를 통해 구글 로그인을 구현하기 위해iOS용 OAuth 클라이언트 ID를 만들고 나면, 2가지 설정을 해주어야 한다. 1. react native 코드 단에서 GoogleSignin.configure 설정에 google client id를 추가2. XCode를 통해서 iOS 네이티브 단의 Info.plist에  ios url schema를 추가. 처음에 정확히 파악하지 못하고 둘 다 google client id 또는 ios url schema를 추가했었는데, 구글 로그인 버튼을 누르면 앱이 꺼져버리는 현상이 발생했었다.  .env 파일을 통해 관리하고 있어서 아래..
ssh 접속 오류: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!Someone could be eavesdropping on you right now (man-in-the-middle attack)!It is also possible that a host key has just been changed. ssh를 통해 접속한 원격서버에, id_rsa.pub 키를 등록해놓은 상태였다. ip 주소를 11.11.11.11 과 같은 숫자 대신에 abc.net 과 같이 도메인 명을 통해서 접속했다. 그런데 위 제목과 같은 오류가 발생- 아마 별칭은 같은데 실제 ip 주소가 달라진 것으로 보인다. 아래 명령어를 통해 해당 도메인과 관련된 키를 삭제하고 접속하면 된다.ssh-keygen -R hostname 위와 같이 해도 안되면,.ssh/known_hosts 파일을 직접 수정해서, 해당 hostname에 관련된 줄을 삭제한다. (Ctrl + K?) 다시 접속하면 비밀번호 통해서 접속할 수 있도록 가능해진다.(ex: ssh ubuntu@abc.net) 참조: https://ocxanc.tistory.com/58
git: git stash -p # git stash 부분적으로 하기 git stash는, 아직 커밋되지 않은 모든 변화분을 임시보관하며 변화분이 없도록 한다. 그런데 git rebase 등을 통해 특정 커밋 내역의 작업내용을 바꾸려할 때, git stash pop을 통해 변화분을 가져올 수 있는데,문제는 원하지 않는 작업 내용이 포함되어 있기 때문에다시 git stash를 할 수도 없고, git rebase --continue를 할수도 없다. 이때, 특정 변화분만 stash를 통해서 남겨두거나, 남겨두지 않을 수 있다.  위 사진과 같이 build.gradle, LoginScreen.js, ProfileUpdateScreen.js의 3가지 작업내역 중에,ProfileUpdateScreen.js만 남겨두고git stash를 통해서 build.gradle, LoginScre..
React Native: iOS CKEditor 적용하기 # .js 파일 로드 실패 # metro.config.js # Error: ...cannot be loaded as its extension is not registered in assetExts html 파일을 통해 CKEditor Webview 를 이용하고자 한다. ckedtior 압축 파일을 받아서 react native 프로젝트 내에 assets안에 포함시켜주었고,다음과 같이 적용 ckeditor_form.html 안에는 다음과 같이 ckeditor.js 파일을 로드 ... Android에서는 문제가 없는데iOS는 실행시 아래와 같이 ckeditor.js를 로드할 수 없다고 오류 발생하며 CKEditor에 아이콘이 적용되지 않는 등 Webview html에 적용되어야할 js 파일이 로드되지 못함으로써 동작이 안됨Error: 'ios/assets/lib/ckeditor/ckeditor.js' cannot be loaded as its extension is ..
React Native: iOS error # Multiple commands produce # DerivedData Multiple commands produce '/Users/sir/Library/Developer/Xcode/DerivedData/gnuboard_react_native-ctxbybazuvucjfhctyjumocvnkpk/Build/Products/Debug-iphonesimulator/gnuboard_react_native.app/Ionicons.ttf' 빌드 과정에서 위 오류가 발생한다. ~/Library/Developer/Xcode/DerivedData  를 직접 삭제해주었다. 해결..되는 경우도 있으나 아닌 경우도 있다. 이름이 겹치는 파일을 제거해줘야 하는 경우도 있는데, 실질적으로 다른 파일인데 이름이 겹치는 경우 제거를 할 경우 프로그램에 오류가 생길 수 있을 것 같다.... 추가적인 해결..
React Native: iOS - react-native-vector-icons 미인식 문제 # XCode # Info.plist React Native를 통해 iOS 개발시,react-native-vector-icons 가 인식이 되지 않는 문제가 있다.나는 react-native-vector-icons 내의 Ionicons를 사용하고 있다. https://stackoverflow.com/questions/77634653/react-native-ionicons-not-showing-in-ios-simulator React Native: Ionicons not showing in iOS simulatorHere is my code for the back to previous screen button. // ChevronLeftButton.tsx import React from 'react'; import { TouchableOpac..
React Native: iOS Info.plist에 .env 환경변수 사용하기 # xcode # Info.plist # $(변수) React Native 프로젝트에 상단에서 이용중인 .env파일의 변수를 iOS 앱 빌드시 이용하고자 한다. react-native-config 설치npm install react-native-config# oryarn add react-native-config  pod 설치cd ios && pod install  Xcode에 빌드시 실행될 script를 작성하자아래와 같이 프로젝트를 선택 -> Build Phases -> Run Script에 script를 삽입한다. Script 내용"${SRCROOT}/../node_modules/react-native-config/ios/ReactNativeConfig/BuildXCConfig.rb" "${SRCROOT}/.." "${SRCROOT}/tmp.xcco..

728x90
반응형