Flutter停止为IOS构建--运行pod安装时出错



一切都很好,突然发生了这种事。我试着跟随

  1. 卸载Cocoapods
  2. 重新安装更新
  3. 删除pod.lock文件
  4. 升级ruby升级gem

什么都没用。我也尝试过运行其他项目,但一旦添加了firebase依赖项,我就会出现这个错误。。此处

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

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

最新更新