How to solve “error running pod install” in flutter on mac?

前端 未结 4 2330
粉色の甜心
粉色の甜心 2021-02-19 15:11

I have an error when I tried to launch my project on my iPhone, the basic Flutter example is working on my iPhone but when I use my project I have this error.

4条回答
  •  Happy的楠姐
    2021-02-19 15:31

    In Flutter project, I Also faced with this issue. Fixed by updating flutter and cocoa pods to the latest version.

    Solution:-

    • flutter clean
    • rm -Rf ios/Pods
    • rm -Rf ios/.symlinks
    • rm -Rf ios/Flutter/Flutter.framework
    • rm -Rf ios/Flutter/Flutter.podspec
    • cd ios
    • pod install
    • cd ..
    • flutter build ios
    • flutter run

提交回复
热议问题