Flutter M1 Mac ld:找不到框架 google_sign_in

GIL*_*ILO 2 dart google-signin flutter apple-silicon

我在 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
Run Code Online (Sandbox Code Playgroud)

====已解决====

我要做的就是去

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

删除这两个

-framework
"google_sign_in"
Run Code Online (Sandbox Code Playgroud)

仅“google_sign_in”之前的框架

也有同样的问题image_picker

GIL*_*ILO 5

我要做的就是去

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

删除这两个

-framework
"google_sign_in"
Run Code Online (Sandbox Code Playgroud)