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

Viewed 8145

I have updated xcode to 12.3, i am getting the new errors.

  • could not find module 'Alamofire' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64
  • Command CompileSwift failed with a nonzero exit code
3 Answers

Another workaround is to set BuildSettings ->"Validate Workspace" to Yes. It will still show a warning, but will build the project.

enter image description here

I was using Carthage 0.38 and XCode 13. I encountered this issues when building Moya.

I found that in file Carthage > Build > iOS, there is a duplicate Alamofire framework build (another one is in Carthage > Build), and XCode somehow use this for building Moya.

After I deleted the duplicate one, it can be built successfully.

change your project name use only english characters

Related