iOS/삽질

· iOS/삽질
특정 버전의 node 를 사용해야해서,node 를 설치 프로그램 통해서 설치하고,nvm 을 통해서 버전을 바꾸었는데, 안됨... nvm install 20.15.1nvm use 20.15.1node -v # 20.17.0 설치 프로그램을 이용해서 설치했기 때문에,node 의 경로가 여러개로 되어서 발생하는 문제였다. ± % which -a node !192/opt/homebrew/opt/node@20/bin/node/Users/..
· iOS/삽질
NSString *str = nil;NSString *a = [NSString stringWithString: str]; // crashNSString *b = [NSString stringWithFormat: @"%@", str]; // null삽질을 거치다 알게 된건데, a 와 b 문자열의 경우 차이가 없어보이지만...아래처럼 nil (NULL) 인 경우에 차이가 생긴다.NSString *str = @"asdfasdf";NSString *a = [NSString stringWithString: str];NSString *b = [NSString stringWithFormat: @"%@", str]; 하드코딩한 값이 아니라 서버에서 내려오는 값인 경우 nil 체크를 따로 거치기 귀찮다면 stringWi..
임또상
'iOS/삽질' 카테고리의 글 목록