1. 현상 

 

expo에서 iOS 시뮬레이터를 실행할 경우 터미널 상에서 아래와 같이
'System Events에 Apple 이벤트를 보낼 권한이 없습니다.'  

에러가 발생한다. 

 

Expo 개발 웹 UI 상에서는 Error opening is simulator. Check Metro logs for details. 라는 에러 문구가 나온다. 

(node:47980) UnhandledPromiseRejectionWarning: Error: Command failed: osascript -e tell app "System Events" to count processes whose name is "Simulator"
28:69: execution error: System Events에 Apple 이벤트를 보낼 권한이 없습니다. (-1743)

    at ChildProcess.exithandler (child_process.js:295:12)
    at ChildProcess.emit (events.js:223:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:223:5)
    at Pipe.<anonymous> (net.js:664:12)
(node:47980) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 14)
(node:47980) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

 

2. 해결 방법

Mac OS의 환경 설정에서 Termial -> System Events 항목을 활성화한다. 

다른 카테고리의 글 목록

리뷰/기타 카테고리의 포스트를 톺아봅니다