tishadow : ts @ run -u 질문있습니다.

안녕하세요 이렇게 또 질문을 올려요,

다른 분이 작성하시던 프로젝트, 받아서 inport 했습니다.

ts @ run -u 를 실행했는데,

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: EMFILE, open '/Users/jeonghyeon-u/Documents/Titanium_Studio_Workspace/Muvi/build/tishadow/src/iphone/[email protected]'

이러한 현상이 발생했습니다…

이런 저런 검색 결과,

Q. 너무 많은 파일을 열기 해서… 생기는 오류 인가요??
https://github.com/dbankier/TiShadow/issues/253

위 링크에 보면 아래와 같이 설명이 나와 있습니다.

MAC: If you get the error EMFILE: Too many opened files., this is because of your system’s max opened file limit. For OSX the default is very low (256). Increase your limit temporarily with ulimit -n 8192, the number being the new max limit.

해결법은 바로 ulimit -n 8192를 먼저 실행해주는 겁니다. 이걸 매번 하기 귀찮으면 ~/.bash_profile에 이 명령어 추가해놓고 사용하면 됩니다.

이전에 들었던 내용 같은데, 감사합니다.