Flutter:应用不是x86_64.运行lipo -info :,应用程序的体系结构:arm64 [英] Flutter: App is not x86_64. Running lipo -info:, App is architecture: arm64

查看:252
本文介绍了Flutter:应用不是x86_64.运行lipo -info :,应用程序的体系结构:arm64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在真正的iOS设备上构建了项目,并且运行正常,但是当我尝试在模拟器上运行它时,出现以下架构错误.另外,我之前也遇到过同样的问题,那时候App在模拟器上运行良好,并且在实际设备上也遇到了同样的错误.

I built my project on a real iOS device and it was working fine but when I tried to run it on the simulator it gives me the below architecture error. Also, I have faced the same issue earlier and that time App was working fine for simulator and gave me the same error for the real device.

 Non-fat binary /Users/dhavalkansara/Library/Developer/Xcode/DerivedData/Runner-dwtuugielmxutoatpwezjbbcemuy/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/App is not x86_64. Running lipo -info:
 Non-fat file: /Users/dhavalkansara/Library/Developer/Xcode/DerivedData/Runner-dwtuugielmxutoatpwezjbbcemuy/Build/Products/Debug-iphonesimulator/Runner.app/Frameworks/App.framework/App is architecture: arm64
 Command /bin/sh failed with exit code 1

我尝试了多种可用的解决方案#25260 #23917 在GitHub上,但仍然面临相同的问题.

I tried multiple solutions available #25260, #22749, #23917 on GitHub but still facing the same issue.

推荐答案

我不确定此问题背后的实际原因.我只是从系统中删除了该项目和Xcode的派生数据,然后再次重新克隆了该项目,它在模拟器和真实设备中均能正常工作.

I am not sure about the actual reason behind this issue. I just deleted the project and Xcode's derived data from my system and then recloned the same project again and it was working fine in both simulator and real device.

根据我的经验,我假设使用flutter run --release命令或通过更改Xcode > Edit scheme > Run > Release在发布模式下运行构建时,默认项目设置中可能会有一些更改,因此我得到了此错误.

So as per my experience, I am assuming that while running the build in release mode using flutter run --release command or by changing Xcode > Edit scheme > Run > Release there might be some changes within the default project settings and because of that I was getting " Could not build the precompiled application for the device." this error.

我还在GitHub上提出了问题.

I have also raised an issue on GitHub for the same.

这篇关于Flutter:应用不是x86_64.运行lipo -info :,应用程序的体系结构:arm64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆