美文网首页
Flutter-Macos-打包-missing one or

Flutter-Macos-打包-missing one or

作者: WXL_JIANSHU | 来源:发表于2020-11-27 16:57 被阅读0次

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就行了,如下图设置。


image.png

相关文章

网友评论

      本文标题:Flutter-Macos-打包-missing one or

      本文链接:https://www.haomeiwen.com/subject/nggxwktx.html