【问题标题】:Flutter M1 Mac ld: framework not found google_sign_inFlutter M1 Mac ld:找不到框架 google_sign_in
【发布时间】:2022-11-14 03:57:05
【问题描述】:

我在 m1 Mac 上收到以下错误

1 warning generated.
ld: framework not found google_sign_in
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order

==== 已解决 ====

我要做的就是去

Xcode => Runner => 构建设置 => 在链接下 => 双击“其他链接器标志”

删除这两个

-framework
"google_sign_in"

只有“google_sign_in”之前的框架

image_picker 也有同样的问题。

【问题讨论】:

    标签: flutter dart google-signin apple-silicon


    【解决方案1】:

    我必须做的是去

    Xcode => Runner => 构建设置 => 在链接下 => 双击“其他链接器标志”

    删除这两个

    -framework
    "google_sign_in"
    

    【讨论】:

      【解决方案2】:

      它也可能会破坏命名更改。在与Pod 设置战斗后,我在.symlinks/plugins 中检查过我有不同的吊舱已下载! 它是 google_sign_in_ios 而不是 google_sign_in。将其重命名为下载的帮助了我。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2022-07-13
        • 2016-01-13
        • 2016-02-09
        • 2019-04-06
        • 2017-08-16
        • 2017-01-17
        • 2019-02-16
        相关资源
        最近更新 更多