1、现象
Building macOS application...
Build process failed
➜ slairportxh flutter build macos
Running "flutter pub get" in slairportxh... 427ms
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: The linked and embedded framework 'App.framework' is missing one or more architectures required by this target: arm64. (in target 'Runner' from project 'Runner')
error: The linked and embedded framework 'FlutterMacOS.framework' is missing one or more architectures required by this target: arm64. (in target 'Runner' from project 'Runner')
** BUILD FAILED **
2、解决
在项目Target的Build Setting中,在Exclude Architectures中,填入arm64就行了,如下图设置。

网友评论