6

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
  • 174
  • 3
  • 12

3 Answers3

0

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,098
  • 2
  • 12
  • 29
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
  • 949
  • 11
  • 9
-6

change your project name use only english characters

xzips
  • 35
  • 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