Flutter iOS build failed an error of pod files: Podfile is out of date

前端 未结 8 525
猫巷女王i
猫巷女王i 2021-01-07 18:48

I\'m trying to build my app on the ios simulator(ios 13), but the build fails and gives an error of pod files: Podfile is out of date

This is the error.



        
8条回答
  •  抹茶落季
    2021-01-07 19:33

    This happens to most of times when i update the flutter SDK, But don't skip updating to make it better and easier because it is very easy to solve

    It is necessary to fix - Removing contents of Pods folder will solve the issue, Here is the process of how to do this

    1. To completely clean(Removing all points to links) and create upgraded to the new(uninstall and installing again too), Write following command

      flutter clean
      rm -Rf ios/Pods
      rm -Rf ios/.symlinks
      rm -Rf ios/Flutter/Flutter.framework
      rm -Rf ios/Flutter/Flutter.podspec
      
    2. Then for reproduce Podfile follow this command

      rm ios/Podfile
      
    3. Finally your project is ready to good to go

      flutter run
      

提交回复
热议问题