Then icon indicating copy to clipboard operation
Then copied to clipboard

M1 - Apple Silicon with arm64 excluded architecture issue

Open dasoga opened this issue 2 years ago • 2 comments

Hi all

In order to run my project in Apple Silicon I had to exclude the arch arm64. But I'm getting this error, could you add support to this please?

Could not find module 'Then' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/.../.../Developer/Xcode/DerivedData/..../Build/Products/Debug-iphonesimulator/Then.swiftmodule

To reproduce it:

In M1 - Apple Silicon Mac:

  1. -Create new project
  2. Instal Swift package Then 6.0.0
  3. In build settings add excluded Architecture for Any iOS simulator SDK = arm64 Screen Shot 2022-05-17 at 18 18 40
  4. Import Then in ViewController.swift
  5. Try to compile the project

Screen Shot 2022-05-17 at 18 15 06

dasoga avatar May 17 '22 23:05 dasoga

Hi Dasoga, I will have access to an M1 Mac in a few days and will report back.

s4cha avatar Jun 28 '22 12:06 s4cha

Hi @dasog, after running some tests, M1 has no issue on my end. I think your issue lies in the "excluded architctures" flag. Running Then on M1 from a newly created project seems to work fine. Could you elaborate on why you need this in the first place please?

s4cha avatar Jun 30 '22 12:06 s4cha