Alamofire: M1 Mac build failure for iOS Simulator

ℹ Please fill out this template when filing an issue. All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you’ve filled in the info.

Per our *CONTRIBUTING guidelines, we use GitHub for bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag alamofire.

Please remove this line and everything above it before submitting.

What did you do?

Attempted to build a project for iOS simulator that utilizes Alamofire via Swift Package Manager on an M1 Mac.

What did you expect to happen?

Build successfully

What happened instead?

Build fails error: could not find module ‘Alamofire’ for target ‘x86_64-apple-ios-simulator’; found: arm64, arm64-apple-ios-simulator

Similar issue here (resolved):

Alamofire Environment

Alamofire version: 5.4.1 Xcode version: 12.3 Swift version: 4 Platform(s) running Alamofire: iOS macOS version running Xcode: 11.1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 17 (3 by maintainers)

Most upvoted comments

I had same issue try many solution but not working then after try following is working for me.

  1. remove all lib from Swift Package Manager.
  2. install all lib in pod
  3. clean project
  4. run build

Good day,

What seemed to have worked for me on Xcode 14.3.1 and ios Simulator 16.4 iPhone 14 Pro. Was to remove the following from my pod file :

Screenshot 2023-07-02 at 03 19 21

and changing it to:

Screenshot 2023-07-02 at 03 19 45

Then after that, I cleared out my Derived data and also did the following commands pod deintegrate and then a pod update

There’s really nothing Alamofire specific here, so can you take this discussion elsewhere? There are a lot of other resources for issues like this.

@geoffraeder Have you figured out what was wrong with your project’s settings? We’re running into a similar problem, albeit with a different framework.