Etc/MacOS

[XCode][트러블 슈팅] Error: xcrun exited with non-zero code: 60

혬수 2024. 3. 27. 14:03

 

❗️ 문제

 npx expo start 명령어로 서버를 시작하면 다음과 같이 QR코드와 실행할 수 있는 단축키 목록이 나온다.

 

안드로이드 애뮬레이터(단축키 a)와 iOS 디바이스(QR코드)로는 정상적으로 실행하나,

iOS 시뮬레이터(단축키 i)만 다음과 같은 에러 코드가 발생하였다.

Error: xcrun exited with non-zero code: 60 
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=60): 
Unable to boot the Simulator. 
launchd failed to respond. 
Underlying error (domain=com.apple.SimLaunchHostService.RequestError, code=4): 
	Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding

 

 

💡 해결

XCode의 시뮬레이터 부팅에 문제가 발생하여 생긴 오류이다.

따라서, XCode 캐시를 삭제하고 재부팅한다.

 

시스템 설정 > 일반 > 저장 공간 > 개발자

다음과 같이 XCode Caches를 삭제하고 다시 실행하면 해결된다.

 

 

참고

https://stackoverflow.com/questions/72229589/flutter-xcode-error-unable-to-boot-the-simulator/74409402#74409402

https://github.com/expo/create-react-native-app/issues/62