Error 'compile swift source files (arm64)' when building project with Xcode 13

I am developing an app with Xcode 13.0 (13A233) on Macbook with an M1 chip.

After updating pods to the latest version, the pods are complaining about error

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'Alamofire' from project 'Pods')

I've already applied the following solutions for the main project and all pods projects:

  • Excluding arm64 architecture for 'Any iOS Simulator SDK' from Excluded architectures
  • Set 'YES' to 'Build Active Architecture Only'
  • There is no field called 'VALID_ARCHS' in the User-Defined section

Any quick response with a proper solution will be much appreciated.

Thank you

Also having the same issue as described, did you ever come up with a solution?

Facing the same issue around here. BTW, excluding arm64 architecture does not seem to work :S

Hi, Is there any solution to this issue? I'm also facing the same issue.

I faced the same.

I have the same question. I used xcode 13.4.1. I compiled the arm64 project, but there was an x86 compilation.

Error 'compile swift source files (arm64)' when building project with Xcode 13
 
 
Q