flutter: running pod install takes forever while building in debug mode

4,465

Pod install is not stuck, when you delete Podfile.lock, pod install will redownload all pod dependencies, will take a long time, after finish, it will create a new Podfile.lock

I have a project that have 20+ dependencies for flutter, firebase dependencies are the most complex ones

Share:
4,465
azheen
Author by

azheen

Updated on November 22, 2022

Comments

  • azheen
    azheen over 1 year

    Using iphone 11 iOS-14 device and simulator, I have deleted THE podfile and podlock of my flutter app and trying to rebuild the app in debug MODE, i am using the latest firebase dependencies including cloud_firestore: ^0.14.1 dependency then it gets stuck at pod install and is taking forever to finish, been more than half an hour.

    I wonder if i should wait longer or is there something wrong with firebase dependencies?

  • azheen
    azheen over 3 years
    i have 19 dependencies including most of firebase.. i hope it gets to an end, it wouldnt take this long with older depedencies especially firebase ones
  • Kohls
    Kohls over 3 years
    It is expected, when I make the mistake of deleting podfile.lock I have to wait about 3/4+ hours, just let it do the job, take a coffe, play some games, when you comeback it will succeed.
  • Kohls
    Kohls over 3 years
    if you confirm that this worked, don't forget to mark as accepted answer
  • azheen
    azheen over 3 years
    don't worry i will, still waiting for now
  • Alexa289
    Alexa289 almost 3 years
    yup, I can confirm, it doesn't stuck. it takes almost 1 hour for me to eventually run the app. crazy