【问题标题】:Flutter Stopped building for IOS --Error running pod installFlutter Stopped build for IOS --Error running pod install
【发布时间】:2021-03-07 21:29:56
【问题描述】:

一切正常,突然之间发生了这种情况。我试过了

  1. 卸载 Cocoapods
  2. 再次安装更新
  3. 删除 pod.lock 文件
  4. 升级红宝石升级宝石

没有任何效果。我也尝试运行其他项目,但是一旦添加了 firebase 依赖项,我就会收到此错误..here

Analyzing dependencies
firebase_auth: Using Firebase SDK version '6.33.0' defined in 'firebase_core'
[!] Failed to load 'firebase_auth' podspec: 
[!] Invalid `firebase_auth.podspec` file: undefined method `ui' for #<Pod::Specification 
name="firebase_auth">.

 /ios/.symlinks/plugins/firebase_auth/ios/firebase_auth.podspec:24
#  -------------------------------------------
#    s.description      = pubspec['description']
>    s.ui.homepage         = pubspec['ui.homepage']
#    s.license          = { :file => '../LICENSE' }
#  -------------------------------------------
Error running pod install

【问题讨论】:

  • 您尝试更新 cocoapods 了吗? $ sudo gem install cocoapods
  • 是的,我做了......像 20 次......
  • 我的错误是 cocapods 未安装或未处于有效状态,请使用 gem install cocoapods 我做到了.. 那是当我停止收到该错误但现在我收到这个错误。
  • 尝试在 pubspec.yaml 中的 firebase_auth 之前添加 lib: firebase_core: ^0.5.2+1 然后运行 ​​flutter pub get
  • 依赖项:flutter:sdk:flutter firebase_core:^0.5.2+1 firebase_auth:^0.18.3+1 firebase_database:^4.3.0

标签: flutter cocoapods


【解决方案1】:

这确实是 Android Studio 的问题。我删除了我的项目,再次从 github 克隆它,然后在终端中使用 Flutter 命令在它工作的 IOS 上运行应用程序。如果我尝试使用 android studio 运行它,它仍然会失败并出现同样的错误。

【讨论】:

    猜你喜欢
    • 2020-11-26
    • 2019-06-05
    • 2020-01-28
    • 2021-06-13
    • 2021-07-31
    • 2021-02-26
    • 2021-03-25
    • 2022-01-13
    • 2022-07-12
    相关资源
    最近更新 更多