2023. 2. 12. 09:54ㆍReactNative
npm i expo-dev-client
위의 명령어를 통해 expo-dev-client 설치
expo development client는
기존의 expo go와 동일한 사용 경험을 제공하지만, 각 커스텀 된 런타임 환경 구성이 가능하다.
npx expo start --dev-client
설치 후, expo를 실행한다
It looks like you're trying to use web support but don't have the required dependencies installed.
Please install @expo/webpack-config@^0.17.2 by running:
웹에서도 띄우려 했더니 이런 에러가 발생하여 @expo/webpack-config@^0.17.2 을 설치했다
그리고 다시 npx expo start --dev-client
error:03000086:digital envelope routines::initialization error
만약 다시 실행했을 때 이런 에러가 발생한다면
Linux and macOS 기준으로 해당 명령어를 입력한다
export NODE_OPTIONS=--openssl-legacy-provider
CommandError: No development build (com.jieungo.floating) for this project is installed. Please make and install a development build on the device first.
설치된 프로젝트에 개발 빌드가 된 기록이 따로 존재하지 않아
개발 모드 빌드를 해줘야 한다.
"build": {
"development-simulator": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
}
}
},
eas.json 파일을 설정하고
eas build --profile development-simulator --platform ios
해당 명령어를 통해 eas build를 하면
ios 시뮬레이터에서 내 프로젝트가 잘 나타나는 걸 볼 수 있다 😎
Ref.
'ReactNative' 카테고리의 다른 글
eas update not working : Cannot find module (0) | 2023.12.15 |
---|---|
ReactNative expo-cli 시작하기. 시작이 반이다. 고로 오늘 반을 끝냈다 (2) | 2023.02.05 |
ReactNative 리액트 네이티브 : 리액트 네비게이션 설정 (0) | 2022.02.13 |
Firebase ReactNative 연동 에러 Error: [storage/unauthorized] User is not authorized to perform the desired action. (2) | 2022.02.10 |
ReactNative 리액트 네이티브 : 키보드 컨트롤하기 (IOS, Android 시뮬레이터 키보드) (0) | 2022.02.10 |