8

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
Ganesh Shetty
  • 302
  • 1
  • 4
  • 12

3 Answers3

1

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

abh
  • 1,189
  • 2
  • 14
  • 30
0

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.

JT501
  • 1,407
  • 15
  • 12
-8

change your project name use only english characters

xzips
  • 51
  • 3
  • I have added arm64 to **excluded architecture** and set **Build Active Architecture Only** to true but still am getting this error. – Ganesh Shetty Apr 06 '21 at 11:55