expo 48/46 SDK - 14.1 IOS

Harry Jung·2023년 5월 24일
0

EAS - UPDATE -> app store 연결 안됨.
App store -> test flight에서 확인하면 됨. 폰으로 다운 받으면 됨.

[expo 48 안드로이드 에러시 대처 방법]
node-module 삭제
package.json에 아래 추가

"resolutions": {
    
    "@expo/config-plugins": "~6.0.0",
    "@expo/prebuild-config": "~6.0.0",
    "expo-modules-autolinking": "~1.1.0"
  },

yarn
npx expo-doctor
문제 없음을 확인 후 build하면 빌드가 진행이 됨.
expo-doctor시 문제생길경우 dependencies 업데이트 및 에러 수정해야함.

yarn upgrade @babel/core before expo upgrade
expo UPGRADE 46.0.0

EAS UPDATE 공식
IOS - SDK48.0.0 - expo: 48.0.0 (package.json)

  1. eas build --profile production --platform ios

  2. eas submit 을 통하여 앱에 올려서 컨펌을 받는다.

  3. 파일을 수정한후 eas update --branch production201 --message "updated" 로
    업데이트를 실행한다.

에러) expo SDK 46.0.0 으로 build는 가능/submit시 ios 16.1상이 되어야 한다고 에러
에러) eas build시 Missing platform 에러가 남. -> eas build --profile development --plat ios 로 진행하면 관련된 파일을 다운받을 수가 있음. 다운 받고 다시 producdtion build하면 진행됨.
참고) eas.json의 build.production.channel: "production201" 로 채널이름이다. 위 처럼 profile은 eas build --profile production으로 빌드를 해야함.

ANDROID
android - SDK46.0.0 - expo: 46.0.0
android -sdk
1. eas build --profile production --platform android

  1. eas submit 을 통하여 앱에 올려서 컨펌을 받는다.

  2. 파일을 수정한후 eas update --branch production2 --message "updated" 로
    업데이트를 실행한다.


expo로 eas build 후 update할 경우 sdk 버전때문에 에러가 날수 있다.
아래 처럼 사용

npm i -g eas-cli
yarn add expo@48.0.0
npx expo doctor
npx expo doctor --fix-dependencies

-> IOS 15.5 변경됨
-> expo ^48.0.0


"runtimeVersion": {
"policy": "sdkVersion"
}


node 14.15.0

android - sdk46.0.0 이 맞음 에러 존재하지 않음. sdk 47/ sdk48 모두 에러남
ios - sdk48.0.0이 맞음 에러 존재하지 않음. / sdk 46 일 경우 Xcode 14.1이상이 안되어 에러남.

ios sdk48.0.0일 경우 stripe payment-> not a valid URl 에러 남
expo-cli 3.7.2 에러 존재함 -> expo start -c 로 해결함

-------------------- 현재 상황 26062023/ mac notebook -----
current version -> [SDK46.0.0]

ANDROID EAS BUILD --channel Production2
IOS EAS BUILD --channel Production200

ANDROID - build OK / submission OK

IOS Submission Error
This app was built with the
iOS 15.5 SDK.

All iOS and iPadOS apps submitted to the App Store must be built with the iOS 16.1 SDK or later,
included in Xcode 14.1 or later.
==>

yarn add expo@48.0.0 /
npx expo doctor / 
npx expo doctor --fix-dependencies
eas build
ios

ios build error

❌ Metro encountered an error:
node_modules/react-native-gesture-handler/src/handlers/gestures/GestureDetector.tsx: /Users/expo/workingdir/build/node_modules/react-native-gesture-handler/src/handlers/gestures/GestureDetector.tsx: Cannot find module '@babel/plugin-proposal-optional-chaining'
Require stack:

peer install =>
yarn add @babel/plugin-proposal-nullish-coalescing-operator
yarn add @babel/plugin-proposal-optional-chaining @babel/plugin-transform-arrow-functions @babel/plugin-transform-shorthand-properties @babel/plugin-transform-template-literals

error 해결함. eas submit 진행함

profile
Dreamsoft

0개의 댓글