관리 메뉴

사과하는 제라스

React Native 시뮬레이터가 실행이 안될때 본문

React Native 공부

React Native 시뮬레이터가 실행이 안될때

Xerath(제라스) 2022. 7. 15. 18:20

목차

    728x90
    반응형
     todo git:(main) ✗ react-native run-ios
    info Found Xcode workspace "todo.xcworkspace"
    xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
    (node:3305) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
    (Use `node --trace-warnings ...` to show where the warning was created)
    error Could not get the simulator list from Xcode. Please open Xcode and try running project directly from there to resolve the remaining issues.
    Error: Command failed: xcrun simctl list --json devices
    xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
    
        at checkExecSyncError (node:child_process:828:11)
        at Object.execFileSync (node:child_process:866:15)
        at runOnSimulator (/Users/xerath18/Documents/todo/node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js:167:54)
        at Object.runIOS [as func] (/Users/xerath18/Documents/todo/node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js:121:12)
        at Command.handleAction (/Users/xerath18/Documents/todo/node_modules/@react-native-community/cli/build/index.js:192:23)
        at Command.listener (/Users/xerath18/Documents/todo/node_modules/commander/index.js:315:8)
        at Command.emit (node:events:520:28)
        at Command.parseArgs (/Users/xerath18/Documents/todo/node_modules/commander/index.js:651:12)
        at Command.parse (/Users/xerath18/Documents/todo/node_modules/commander/index.js:474:21)
        at setupAndRun (/Users/xerath18/Documents/todo/node_modules/@react-native-community/cli/build/index.js:271:24)
    info Run CLI with --verbose flag for more details.

    -> 에러 사유: 내 Xcode(Simulator)위치가 다른 곳에 있었기 때문이었음.

    -> 다음 블로그를 보며 위치를 이동시켜주니 아주 잘 굴러감.

     

    https://wordbe.tistory.com/entry/React-Native-CLI-Simulator-%EC%97%B0%EB%8F%99android-ios

     

    [React Native CLI] - Simulator 연동(android, ios)

    React Native CLI - Simulator 연동(android, ios) expo 를 사용하지 않고 react-native CLI 로 앱을 실행하고, 빌드, 배포해보자. 일단 react native cli를 설치한다. $ yarn global add react-native-cli 또는 $..

    wordbe.tistory.com

     

    728x90
    반응형