액티브 스킬

<플러터> 파이어베이스 iOS 앱 빌드 속도 개선

디벅잉 2022. 11. 15. 23:00
728x90

 

🧭

 

iOS 빌드 속도는 안드로이드에 비해 다소 느린 감이 있습니다.

특히, 파이어베이스를 연동하면서 속도가 저하되는데 precomplied SDK를 활용하면 이를 개선할 수 있습니다.

root > ios > Podfile 파일에 파이어베이스 버전명을 포함하여 다음과 같은 코드를 추가합니다.

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

아래는 위 코드를 반영한 모습입니다.

참고한 사이트에서는 성능을 67% 까지 감소시켰다고 나와 있습니다.

제가 측정한 빌드 시간은 70여초에서 60여초로 크게 체감되는 정도는 아니었습니다.

 

📌

 

https://www.udemy.com/course/flutter-provider-essential-korean/

https://joshuamdeguzman.com/improve-flutter-ios-build-time-when-using-firestore/

 

Improve Flutter iOS Build Time
 When Using Firestore

Slow builds whether locally or in the CI reduces developer productivity. If you integrated Firestore in your Flutter app, chances are, you may have experienced slow builds in your apps.

joshuamdeguzman.com

 

728x90