티스토리 뷰
[RN/XCode] how to resolve std::__1::system_error: Operation not permitted
썬이_ 2024. 7. 1. 15:38XCode > Run 을 통해 앱을 디버깅하려 할 때, 갑자기 Watchman쪽에서 std::__1::system_error: Operation not permitted 메시지를 콘솔에 띄우며 앱이 실행이 안되는 이상한 에러를 맞닥뜨려 시간을 허비했다.
When trying to debug an app via XCode > Run, I encountered a strange error message from Watchman, stating std::__1::system_error: Operation not permitted, preventing the app from running. I wasted quite some time trying to resolve it.
watchman 버전을 업데이트해도, 맥북을 재부팅해도 해결이 되지 않았다..
그러다 나와 완전 같은 경우의 개발자분의 경험을 통해 해결했다.
Updating Watchman and rebooting my MacBook didn’t help either. I finally resolved it through another developer’s experience who faced the exact same issue.
📌 Error
std::__1::system_error: open: /Users/경로: Operation not permitted
📌 Resolved
1. Watchman 권한 삭제하기 Remove Watchman permissions
설정 > 개인정보 보호 및 보안 > 파일 및 폴더 > watchman 을 선택하고 - 버튼을 눌러 권한을 삭제해준다.
Go to Settings > Privacy & Security > Files and Folders, select Watchman and click the - button to remove its permissions.
2. Watchman 서버 종료 후 재시작 해주기 Restart the Watchman server
watchman shutdown-server // kill-server
watchman // start-server
터미널 상에서 현재 가동중인 watchman 서버를 shutdown 해준 후에 watchman 명령어를 통해 재시작한다.
In the terminal, shut down the currently running Watchman server and restart it with the following commands:
이후 다시 앱을 빌드하면 해결된다.
After shutting down the Watchman server, restart it with the Watchman command.
After doing this, build the app again and the issue should be resolved.
출처 : https://hanarotg.tistory.com/64
[React-Native] Watchman std::__1::system_error: Operation not permitted 접근 권한 버그 해결하기
RN 앱을 개발할 때 필요한 도구인 watchman, 프로젝트 디렉토리 접근 권한이 부여된 상태임에도 실행 시 접근 권한이 없다고 에러를 출력하는 문제가 있습니다. 이 문제를 해결해보겠습니다. ... { wa
hanarotg.tistory.com
- Total
- Today
- Yesterday
- TS
- It
- vsC
- React Hooks
- app
- Android
- gradle
- 앱개발
- Ai
- build
- IMAGE
- vscode
- useState
- Xcode
- typeScript
- Firebase
- 스파르타코딩클럽
- JavaScript
- 코린이
- FlatList
- CSS
- rn
- useEffect
- ReactNative
- ChatGPT
- React Native
- Mac
- ios
- REACT
- 영종도데이트
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |