바르고 뜨겁게

React-Native run-ios —device 빌드 에러 본문

자바스크립트/React Native

React-Native run-ios —device 빌드 에러

RightHot 2019. 8. 31. 13:55

React-Native run-ios —device 빌드 에러

  1. react-native 에서 아이폰 장비로 빌드시 에러

    react-native run-ios --device [아이폰 장비 이름]

    error Failed to install the app on the device because we couldn't execute the "ios-deploy" command. Please install it by running "npm install -g ios-deploy" and try again. Run CLI with --verbose flag for more details.

  2. ios-deploy 설치 시도 또 에러

    sudo npm install -g ios-deploy

    ** BUILD FAILED **

    npm ERR! code ELIFECYCLE
    npm ERR! errno 65
    npm ERR! ios-deploy@1.9.4 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
    npm ERR! Exit status 65
    npm ERR!
    npm ERR! Failed at the ios-deploy@1.9.4 preinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/mac/.npm/_logs/2019-08-31T04_09_16_283Z-debug.log
    macui-MacBook-Pro:TheSaju mac$ react-native run-ios --device 'mac의 iPhone'

  3. brew 로 설치 시도.

    • brew 설치

      cmd 에서 아래 명령어 입력

      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    • brew 로 ios-deploy 설치

      brew install ios-deploy

  4. 다시 빌드

    react-native run-ios --device [아이폰 장비 이름]


Comments