简体   繁体   中英

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

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

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

在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM