본문 바로가기
Frontend/React Native

React Native Expo실행시 iOS Simulator 실행안됨 해결

by 디스코비스킷 2025. 3. 6.
반응형

증상

먼저 npx expo start해서 i로 ios 시뮬레이터를 사용하려고했는데 xcode설치했는데도 실행이 안돼서 찾아보니

플랫폼을 맥이 아니라 아이폰을 다운받아야했다.

8.72GB를 설치중

이건 XCode 실행하고 Xcode에서 Setting > Components > iOS 시뮬레이터옆에 Get해서 다운받으면됨

npx expo start > i 했는데

너 앱스토어에서 xcode먼저 설치해라

Xcode must be fully installed before you can continue. Continue to the App Store? › (Y/n)

이케 뜸..

xcode 설치확인

Xcode를 인식하지 못하는 상황이라서그럼

xcode CLI 설치확인

xcode-select --version 

-> CLI는 버전 잘 뜨는데

xcode 설치확인

xcodebuild -version

❯ xcodebuild -version xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

이건 설치 인식이 안됨!!!

해결방법

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

Xcode가 정상적으로 설치되었다면,
터미널에서 아래 명령어를 실행하여 Xcode를 개발자 도구의 기본값으로 설정한다.

다시

xcodebuild -version 

하여 설치확인하면 잘 됨!!!

반응형

최근댓글

최근글

© Copyright 2024 ttutta