简体   繁体   English

找不到目标“arm64-apple-ios-simulator”的模块“Alamofire”; 找到:x86_64-apple-ios-simulator,x86_64

[英]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.我已将 xcode 更新到 12.3,我收到了新错误。

  • could not find module 'Alamofire' for target 'arm64-apple-ios-simulator';找不到目标“arm64-apple-ios-simulator”的模块“Alamofire”; found: x86_64-apple-ios-simulator, x86_64找到:x86_64-apple-ios-simulator,x86_64
  • Command CompileSwift failed with a nonzero exit code命令 CompileSwift 因非零退出代码而失败

Another workaround is to set BuildSettings ->"Validate Workspace" to Yes.另一种解决方法是将 BuildSettings ->“Validate Workspace”设置为 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.我使用的是 Carthage 0.38 和 XCode 13。我在构建 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.我发现在Carthage > Build > iOS文件中,有一个重复的 Alamofire 框架构建(另一个在 Carthage > Build 中),并且 XCode 以某种方式使用它来构建 Moya。

After I deleted the duplicate one, it can be built successfully.我删除重复的后,它可以成功构建。

change your project name use only english characters更改您的项目名称仅使用英文字符

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode 12 问题 - 找不到目标“arm64-apple-ios-simulator”的模块“FrameworkName”; 找到:x86_64-apple-ios-simulator,x86_64 - Xcode 12 issue - Could not find module 'FrameworkName' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64 找不到目标“x86_64-apple-ios-simulator”的模块“FBSDKCoreKit”; 找到:arm64,arm64-apple-ios-simulator - Could not find module 'FBSDKCoreKit' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator 找不到目标“x86_64-apple-ios-simulator”的模块“XXXX”; 在 Swift 项目中找到:arm64、arm64-apple-ios-simulator? - Could not find module 'XXXX' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator in Swift Project? 找不到目标“x86_64-apple-ios-simulator”的模块“MyCustomFramework”; 找到:arm64、armv7-apple-ios、arm64-apple-ios、arm、armv7 - Could not find module 'MyCustomFramework' for target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios, arm64-apple-ios, arm, armv7 找不到目标“x86_64-apple-ios-simulator”的模块“Alamofire” - could not find module 'Alamofire' for target 'x86_64-apple-ios-simulator' 找不到目标“x86_64-apple-ios-simulator”的模块“Kingfisher” - Could not find module 'Kingfisher' for target 'x86_64-apple-ios-simulator' 找不到目标“x86_64-apple-ios-simulator”的模块 - Could not find module for target 'x86_64-apple-ios-simulator' 目标 'arm64-apple-ios' 的 iOS 'Heimdall' 出现错误; 找到:x86_64“ - Getting Error in iOS 'Heimdall' for target 'arm64-apple-ios'; found: x86_64 " 为arm64编译Libical,为iOS编译x86_64 - Compiling Libical for arm64 and x86_64 for iOS 如何修复此错误“找不到架构‘x86_64’的模块‘CzsBleSdk’;找到:arm64,arm” - How to fix this error " Could not find module 'CzsBleSdk' for architecture 'x86_64'; found: arm64, arm "
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM