expo dev client와 eas build 사용하기

2023. 2. 12. 09:54ReactNative

 

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.

https://docs.expo.dev/build/setup/#build-for-app-stores

https://stackoverflow.com/questions/74726224/opensslerrorstack-error03000086digital-envelope-routinesinitialization-e

반응형