ios - 错误显示 : dyld_sim is not compatible with the loaded process

标签 ios xcode

我有一个应用程序的源代码,它在 iPhone(适用于 iOS 7 及之前的操作系统)中运行,但在 iOS 8.0 及更高版本中不受支持。当我尝试编译代码时,它可以正常执行所有文件,但会抛出架构不匹配错误。

在控制台中:

dyld: dyld_sim is not compatible with the loaded process, likely due to architecture mismatch

我尝试在 iPhone 和 Xcode iOS 模拟器的build设置中添加有效架构(armv7 armv7s arm64)。仍然没有解决问题...

请帮帮我...

我正在使用 Xcode 9.2。

Valid Architectures

最佳答案

按照以下步骤操作。希望它能奏效......

  1. 将部署目标更改为最近的目标,例如 >= 9.0
  2. 从 Build Settings> Architectures 中为 Architectures 选择Standard architectures

enter image description here

enter image description here

关于ios - 错误显示 : dyld_sim is not compatible with the loaded process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48662735/

相关文章:

ios - 仅在 tableview 单元格中制作左下角

ios - UIBarButtonItem 标题文本始终是全局色调颜色

ios - Xcode 4.5 : "does not have access to iOS 5.1 simulator"

iphone - 有没有更简单的方法来替换 XCode 中的文件?

objective-c - 在与主类分开的 .m 文件中实现 objc 协议(protocol)方法?

iphone - 如何控制 subview 的大小和布局?

ios - AMSlideMenu 重叠状态栏?

ios - Alamofire httpBody 在 swift 5 中显示 500 statusCode

iOS - 将图像/容器 View 放置在导航栏上方

ios - 在 Xcode 8 中添加开发团队?