안녕하세요

프로그램 과정에서 막혔던 문제들에 대한 해결책 정리


페이지 목록

2022년 12월 7일 수요일

mac에 brew(Homebrew) 설치

 https://brew.sh/

에 나와 있는 설치 방법을 복사해서 붙여 넣으면 된다.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Your Ruby version is 2.6.10, but your Gemfile specified 2.7.5

 출처: https://stackoverflow.com/questions/74189532/your-ruby-version-is-2-6-8-but-your-gemfile-specified-2-7-5

 루비 버전이 낮아서 발생하는 문제

아래와 같이 설치하면 된다.

$ brew update
$ brew install ruby-build
$ brew install rbenv

$ rbenv install 2.7.5
$ rbenv global 2.7.5

설치 후 아래와 같이 글로벌 Ruby 세팅을 rbeny에 넣어줘야한다.

After that, you need to export some configurations to define rbenv as default global ruby:


echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc


근데 echo로 넣는 게 문제인지 install에 2.7.5라고 지정해서 넣는 게 문제인지 다른 댓글에는 
문제라고 하기도 한다. 어지럽다.

일단 설치 후에 터미너을 껐다 켜서 재부팅 시켜줘라는 이야기도 있다.

mac에 react-native 설치 시 cocoapods를 gem vs homebrew 무엇으로 할 것인가?

출처:https://stackoverflow.com/questions/65570441/react-native-should-i-install-cocoapods-with-gem-or-homebrew

gem으로 하면 기존에 mac에 설치되어 있는 ruby와 충돌이 있어서 난감하니

brew로 하는 게 좀 더 클린하게 된다고 한다.

node.js 설치파일

https://nodejs.org/ko/


LTS 는 안정적인 버전, 현재버전은 최신버전

2022년 12월 5일 월요일

Invalid update: invalid number of rows in section 0

tableview에 지울경우 Object를 remove하지 않으면 발생한다.

출처: https://stackoverflow.com/questions/21870680/invalid-update-invalid-number-of-rows-in-section-0

2022년 12월 3일 토요일

unable to dequeue a cell with identifier reuseIdentifier

 tableView를 오버라이드 한 파일 만들때 주석으로 만들어주는 함수에 보면 

let cell = tableView.dequeuereusableCell(withIdentifier : "~~~~"가 있는데


~~~~ 자리에 내가 설정한 cell의 identifier를 넣어주지 않았기 때문에 발생


https://stackoverflow.com/questions/29282447/unable-to-dequeue-a-cell-with-identifier-cell-must-register-a-nib-or-a-class-f


출처: https://euna501.tistory.com/entry/unable-to-dequeue-a-cell-with-identifier-reuseIdentifier

2022년 11월 13일 일요일

맥북과 아이폰 전화 메세지 연결

 맥북과 아이폰을 같은 와이파이로 연결

 맥북과 아이폰 같은 계정 연결


1. 아이폰 과 맥북 전화 연동

아이폰: 설정->전화->다른기기에서의 통화 활성화

맥북: facetime -> 설정 -> iPhone 통화 체크


2. 아이폰과 맥북 메세지 연동

아이폰: 설정 ->메세지 -> 문자 메세지 전달 -> 맥북기기명 On 으로 활성화

맥북: 메세지 -> 설정 -> iMessage -> 동일 계정연동 확인