【问题标题】:How to re install podfile.lock in a flutter application如何在颤振应用程序中重新安装 podfile.lock
【发布时间】:2021-10-27 00:32:24
【问题描述】:

在我尝试使用 firebase 后,我的 Xcode 构建需要很长时间才能运行。我找到了一个解决方案,需要我将其添加到我的 podfile 中

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

然后删除 podfile.lock 以最终运行 pod install。但是 pod install 带来了这个错误,因为

[!] No `Podfile' found in the project directory.

我已经尝试再次安装可可豆荚,但 pod install 命令在 pod init one 下仍然不起作用

我能做些什么来解决这个问题

【问题讨论】:

    标签: flutter


    【解决方案1】:

    首先,您必须导航到ios 目录

    cd ios
    

    然后运行与 iOS 构建相关的任何命令,在您的情况下尝试

    flutter clean
    rm -Rf ios/Pods
    rm -Rf ios/.symlinks
    rm -Rf ios/Flutter/Flutter.framework
    rm -Rf ios/Flutter/Flutter.podspec
    pod deintegrate
    pod install
    

    【讨论】:

    • 以下是我现在收到的错误 [!] CocoaPods 找不到 pod "FirebaseFirestore" 的兼容版本:在 Podfile: FirebaseFirestore (from https://github.com/invertase/firestore-ios-sdk-frameworks.git, tag 6.26.0) cloud_firestore (from @987654326 @) 被解析为 2.5.4,它依赖于 Firebase/Firestore (= 8.8.0) 被解析为 8.8.0,它依赖于 FirebaseFirestore (~> 8.8.0)
    • 您无需将 FirebaseFirestore pod 添加到您的 podfile 中(Firestore)包为您完成了
    猜你喜欢
    • 2019-11-25
    • 1970-01-01
    • 2018-08-18
    • 2021-03-06
    • 2021-05-05
    • 2020-11-28
    • 2021-03-20
    • 1970-01-01
    • 2018-12-16
    相关资源
    最近更新 更多