React-native와 Expo SDK 48 그리고 react-native-maps라이브러리를 사용할때 expo ejet과정에서 withIosAppDelegateBaseMod오류가 발생한다.
{
"name": "carbon-app",
"version": "1.0.0",
"scripts": {
"start": "expo start --dev-client",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/bottom-tabs": "^6.5.7",
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.16",
"expo": "~48.0.10",
"expo-asset": "^8.9.1",
"expo-font": "^11.1.1",
"expo-splash-screen": "~0.18.1",
"expo-status-bar": "~1.4.4",
"react": "18.2.0",
"react-native": "0.71.6",
"react-native-gesture-handler": "^2.9.0",
"react-native-grid-image-viewer": "^1.3.0",
"react-native-maps": "^1.4.0",
"react-native-reanimated": "^3.0.2",
"react-native-reanimated-carousel": "^3.3.0",
"react-native-responsive-screen": "^1.4.2"
},
"devDependencies": {
"@babel/core": "^7.21.4"
},
"private": true
}
[ios.appDelegate]: withIosAppDelegateBaseMod: Cannot add Google Maps to the project's AppDelegate because it's malformed. Please report this with a copy of your project AppDelegate.
Error: [ios.appDelegate]: withIosAppDelegateBaseMod: Cannot add Google Maps to the project's AppDelegate because it's malformed. Please report this with a copy of your project AppDelegate.
at /usr/local/lib/node_modules/expo-cli/node_modules/@expo/config-plugins/src/ios/Maps.ts:199:19
at action (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/config-plugins/src/plugins/withMod.ts:227:29)
at interceptingMod (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/config-plugins/src/plugins/withMod.ts:108:27)
at action (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/config-plugins/src/plugins/createBaseMod.ts:82:27)
at interceptingMod (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/config-plugins/src/plugins/withMod.ts:108:21)
at evalModsAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/config-plugins/src/plugins/mod-compiler.ts:172:25)
at compileModsAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/config-plugins/src/plugins/mod-compiler.ts:82:10)
at configureManagedProjectAsync (/usr/local/lib/node_modules/expo-cli/src/commands/eject/configureProjectAsync.ts:58:12)
at prebuildAsync (/usr/local/lib/node_modules/expo-cli/src/commands/eject/prebuildAppAsync.ts:88:21)
at actionAsync (/usr/local/lib/node_modules/expo-cli/src/commands/eject/prebuildAsync.ts:37:3)
위의 명령어를 실행해준후 ncu -u 명령어로 dependency의 현재 설치된 버전 및 최신 버전을 확인해준뒤 모두 최신 버전으로 업그레이드 해준다
그다음 위의 명령어를 실행해주면 성공적으로 eject되는것을 확인할수 있다