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

查看:28
本文介绍了Flutter:应用程序不是 x86_64.运行 lipo -info:, App is architecture: 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#22749, #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 > 在发布模式下运行构建时;编辑方案 >运行 >发布默认项目设置中可能有一些更改,因此我收到无法为设备构建预编译应用程序."这个错误.

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:, App is architecture: arm64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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