【问题标题】:Flutter Error running pod install After Upgrading Flutter version升级 Flutter 版本后运行 pod install 时出现 Flutter 错误
【发布时间】:2021-08-25 07:56:28
【问题描述】:

将flutter版本升级到最新的Flutter 2.2.1后,在ios模拟器上运行app时运行pod install时报错

我已经尝试通过执行以下命令来清理 pod,但它没有解决问题

flutter clean
flutter pub get
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm ios/Podfile

最后

flutter run

【问题讨论】:

    标签: flutter flutter-ios


    【解决方案1】:

    以下对我有用的步骤:

    1. 运行flutter clean
    2. 运行flutter pub get
    3. 运行flutter pub upgrade
    4. 删除项目ios文件夹内的PodfilePodfile.lockPods文件夹
    5. 运行flutter clean
    6. 运行flutter run

    【讨论】:

      【解决方案2】:

      试试这个: 转到ios文件夹并运行

      pod install --repo-update 
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2022-08-23
        • 2020-01-14
        • 2020-04-19
        • 2021-08-24
        • 2022-07-04
        • 2022-01-17
        • 2021-11-11
        相关资源
        最近更新 更多