0

I am trying to run my flutter app in ios via android studio, and i am encountering this error which i do not understand.

User-Defined Issue (Xcode): Unsupported Swift architecture

aintno12u
  • 341
  • 4
  • 23

2 Answers2

0

Making these changes resolved my issue

enter image description here

aintno12u
  • 341
  • 4
  • 23
0

I ran into this issue with the RevenuCat package. It turns out it was my fault all along. I had added the following code to my podfile a long time ago and forgot about it:

installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end

Removing this fixed the issue.

Code on the Rocks
  • 11,488
  • 3
  • 53
  • 61