Flutter M1 Mac ld:找不到框架 google_sign_in

Flutter M1 Mac ld: framework not found google_sign_in

我在 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 => Build settings => Under linking => 双击“Other linker flags”

删除这两个

-framework
"google_sign_in"

Only the framework before the "google_sign_in"

image_picker 也有同样的问题。

我要做的就是去

Xcode => Runner => Build settings => Under linking => 双击“Other linker flags”

删除这两个

-framework
"google_sign_in"