본문 바로가기
Flutter

cloud_firestore 추가 후 빌드속도 향상시키기

by 붕어사랑 티스토리 2023. 10. 20.
반응형

https://firebase.flutter.dev/docs/firestore/overview

 

Cloud Firestore | FlutterFire

This page is archived and might not reflect the latest version of the

firebase.flutter.dev

 

공식문서에서 나온 내용이다. flutter_ios_sdk의 경우 라이브러리가 드럽게 연결이 많이 되어서 한번 추가하면 빌드타임이 5분이나 걸린다고 한다. 이를 해결해주는 방법은 podfile에 아래 코드를 추가하는것이다.

 

 

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.15.0'

 

 

위 코드를 target Runner do 블럭 사이에 넣어주면 된다. 다음으로 클린을 한번 해준뒤 pod install을 해 준다.

 

flutter clean

flutter pub get

cd ios

pod install

 

 

이후 xcode에서 빌드하면 미리 빌드된 빌드파일을 받아와서 앱을 빌드한다.

 

대충 빌드에러가 나면, tag값을 깃주소에서 찾아가서 가장 최신으로 맞춰주면 된다.

반응형

댓글