错误显示:dyld_sim 与加载的进程不兼容 [英] Error showing : dyld_sim is not compatible with the loaded process

查看:35
本文介绍了错误显示:dyld_sim 与加载的进程不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在 iPhone 上运行的应用程序的源代码(适用于 OS iOS 7 及更早版本),但在 iOS 8.0 及更高版本中不受支持.当我尝试编译代码时,它可以正常执行所有文件,但会引发架构不匹配错误.

在控制台:

<块引用>

dyld:dyld_sim 与加载的进程不兼容,可能是由于到架构不匹配

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

请帮帮我...

我使用的是 Xcode 9.2.

I have a source code of an app that is live in iPhone (for OS iOS 7 and before) and it is not supported in iOS 8.0 and later. When I tried to compile the code it is executing all the files fine, but it is throwing an architecture mismatch error.

In console:

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

I tried adding valid architectures (armv7 armv7s arm64) in Build settings for both iPhone and Xcode iOS simulators. Still doesn't fix the issue...

Please help me...

I am using Xcode 9.2.

Valid Architectures

解决方案

Follow the steps below. Hope it will work.....

  1. Change Deployment target to recent one like >= 9.0
  2. Select Standard architectures for Architectures from Build Settings> Architectures

这篇关于错误显示:dyld_sim 与加载的进程不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆