바르고 뜨겁게
React-Native run-ios —device 빌드 에러 본문
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.
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'brew 로 설치 시도.
brew 설치
cmd 에서 아래 명령어 입력
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew 로 ios-deploy 설치
brew install ios-deploy
다시 빌드
react-native run-ios --device [아이폰 장비 이름]
'자바스크립트 > React Native' 카테고리의 다른 글
ReactNative - SoundPlayer 사용법 (0) | 2019.09.03 |
---|---|
ReactNative - webRTC normal arm64 Error (0) | 2019.09.02 |
ReactNative - 컴포넌트(화면)간 데이터(파라미터) 전달하기 (0) | 2019.08.28 |
ReactNative - android SHA-1 인증서 확인하기 (0) | 2019.08.21 |
ReactNative - Shadow 스타일 (Platform ios , android) (0) | 2019.08.20 |
Comments