반응형
프로젝트 구동 시 시뮬레이터 기종을 지정하기 위해서는 아래 명령어처럼 --simulator를 써서 실행하면 된다.
react-native run-ios --simulator "iPhone SE (3rd generation)"
package.json에서 미리 지정해놓고 싶다면, 다음과 같이 scripts 부분을 수정해주면 된다.
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios --simulator \"iPhone SE (3rd generation)\"",
"web": "expo start --web"
},
'ReactNative' 카테고리의 다른 글
[React Native] 실제 기기(아이폰) 연결해서 프로젝트 구동하기 (2) | 2024.07.05 |
---|---|
[React Native] fetch 사용 시 TypeError: Network request failed (0) | 2024.07.01 |
[React Native] 탭 간 이동시 탭에 쌓여있는 스택 새로고침/초기화하기 (0) | 2024.06.11 |
[React Native]error Failed to build iOS project. "xcodebuild" exited with error code '65'. (0) | 2024.05.16 |
react-native-calendars에서 날짜 점프 구현하기 (0) | 2024.04.11 |