小编Erd*_*yam的帖子

Flutter 出现错误“Error running pod install”

当我将 google_sign_in 包实现到我的 flutter 应用程序时,我收到以下错误/日志。\n我正在使用 m1 芯片。所有软件包、flutter 框架和 xcode 的最新版本。

\n

Flutter项目依赖:

\n
    \n
  • http:^0.13.4
  • \n
  • firebase_auth:^3.3.6
  • \n
  • 谷歌登录:^5.2.3
  • \n
\n

一开始我得到了这个:

\n
\n\n\n    Error output from CocoaPods:\n    \xe2\x86\xb3\n        [!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.\n\n \n
\n

然后我取消注释这个平台:ios,\'9.0\'然后我在 ios/Podfile 中

\n

但不同的错误显示如下:

\n
\n\n\n    Launching lib/main.dart on iPhone 13 in debug mode...\n    lib/main.dart:1\n    CocoaPods\' …
Run Code Online (Sandbox Code Playgroud)

firebase-authentication google-signin flutter

3
推荐指数
1
解决办法
1万
查看次数