expo에서 소셜 로그인 중 google 로그인을 구현하려고 하였다
@react-native-google-signin/google-signin
요 패키지를 설치하고 빌드를 하는데,
갑자기 빌드가 안 되더라.
🍏 iOS build failed:
Some pods require a higher minimum deployment target.
You can use the expo-build-properties config plugin (https://docs.expo.dev/versions/latest/sdk/build-properties/) to override the default native build properties and set a different minimum deployment target.
이런 에러가 발생해서
빌드는 실패하는데 expo free plan의 개수는 점점 채워져가서.. 거의 4번을 날려먹었다 (내 아까운 무료 빌드 타임..)
해당 링크를 타고 expo-build-properties 관련 문서를 보니
app.json에 예시 코드가 존재했다.
{
"expo": {
"plugins": [
[
"expo-build-properties",
{
"android": {
"compileSdkVersion": 31,
"targetSdkVersion": 31,
"buildToolsVersion": "31.0.0"
},
"ios": {
"deploymentTarget": "13.0"
}
}
]
]
}
}
deploymentTarget을 ios 최소 13 버전으로 바꿔주면 되겠고만 하고
변경 후 재빌드 했는데 또 같은 에러가 발생했다.
이럴 땐 역시 google login 공식 문서를 봐야 한다 (진작 볼걸)
https://github.com/react-native-google-signin/google-signin
GitHub - react-native-google-signin/google-signin: Google Sign-in for your React Native applications
Google Sign-in for your React Native applications. Contribute to react-native-google-signin/google-signin development by creating an account on GitHub.
github.com
여기가 expo google signin 깃헙인데,
여기 말고
https://react-native-google-signin.github.io/docs/install
Installation | React Native Google Sign In
There are two ways to consume the package
react-native-google-signin.github.io
가장 최신 문서를 확인하자
설정에서 Expo setup을 누르면
상단에 이런 info 내용을 확인할 수 있다.
즉 sdk가 꽤나 최신 버전인 나는 ios 최소 버전을 13.4로 설정해야 했다
[
"expo-build-properties",
{
"ios": {
"deploymentTarget": "13.4"
},
...
다시 최소 배포 타깃 버전을 13.4로 수정하고 expo build를 하니 다행히 잘 동작했다
아까운 free plan 횟수..
오늘도 공식 문서를 열심히 확인하자고 다짐했다...
근데 이러고 또 안 볼 것 같다.