'Runner's architectures (armv7, arm64) include none that iPhone 11 can execute (Intel 64-bit)

Today when I run my flutter(2.2.x) project in XCode Version 12.5 (12E262), shows error:

Runner's architectures (armv7, arm64) include none that iPhone 11 can execute (Intel 64-bit).

this is the UI:

enter image description here

I have read this question and tried to fix this problem. But I found I did not have a VALID_ARCHS variable in Build Settings -> User-Defined -> VALID_ARCHS.

enter image description here

what should I do to fix this problem?



Solution 1:[1]

I fixed it by updating Excluded Architectures in Project Runner

  • Project Runner
  • Build Settings > Architectures > Excluded Architectures

for some reason I have arm64. It works when I removed it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 surga