Moya icon indicating copy to clipboard operation
Moya copied to clipboard

Could not find module 'Moya' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64

Open Nhong opened this issue 4 years ago • 13 comments

How to fixed error Could not find module 'Moya' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64 on simulator ios 14 ?

Nhong avatar Sep 16 '20 03:09 Nhong

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Oct 04 '20 03:10 stale[bot]

Same issue on Xcode 12

nampham7394 avatar Oct 05 '20 10:10 nampham7394

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Dec 25 '20 14:12 stale[bot]

Same issue on Xcode 12.4

sakiyamaK avatar Feb 13 '21 17:02 sakiyamaK

I solve the problem by adding 'x86_64' to VALID_ARCHS (Project > Build Settings)

wieplond avatar May 11 '21 04:05 wieplond

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jun 26 '21 03:06 stale[bot]

Same issue on M1 when using SPM, none of the known solutions except Rosetta simulation work. Apple provides documentation on the issue here: https://developer.apple.com/documentation/technotes/tn3117-resolving-build-errors-for-apple-silicon#Update-pre-compiled-libraries-from-vendors Please have a look, this can only be fixed by the package owner. Thanks in advance.

hovaks avatar Sep 16 '22 12:09 hovaks

I have this issue with M2 Pro MacBook. Error message reads: "Could not find module 'Moya' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator"

Running through Rosetta works, but I feel like this should be fixed from the library's side. Any suggestions for a workaround?

alexdmotoc avatar Jan 26 '23 10:01 alexdmotoc

I have this issue with M2 Pro MacBook. Error message reads: "Could not find module 'Moya' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator"

Running through Rosetta works, but I feel like this should be fixed from the library's side. Any suggestions for a workaround?

Yes, the same issue on latest M2 Pro macbook

ljcamel avatar Feb 06 '23 11:02 ljcamel

We use Moya as SPM dependency. All of us are on M1 Pro macbooks. Moya ver. 15.0.0. No issues. No Rosseta. Everything is running natively.

jurajantas avatar Feb 06 '23 14:02 jurajantas

Yes, the same issue on latest M1 Pro macbook

Dragonboh avatar Aug 31 '23 18:08 Dragonboh

Same issue on M1 Macbook Air

andreistoc avatar Oct 23 '23 07:10 andreistoc

Considering that Moya is delivered in source form, compilation to whatever architecture depends only on your project setup. In the project build settings, check if you have standard architectures in architectures, and in exclude architectures you have nothing. Certainly not arm64 in exclude. Each of your dependency should be like that.

Only problem you can have is when you are using already compiled framework and that framework is missing arm64 chunk.

jurajantas avatar Oct 23 '23 08:10 jurajantas