10

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

  • Possible duplicate of [dyld: dyld\_sim not compatible mach-o](https://stackoverflow.com/questions/46323700/dyld-dyld-sim-not-compatible-mach-o) – Berendschot Feb 07 '18 at 11:46
  • @Berendschot Thanks for the comment. Sorry, my mistake. it worked for me but, nowhere it is mentioned that I had to add valid architectures to both project and target Build Settings. That took me a while to figure it. Anyway, I finally made it compile and run. – Venkatesh Chejarla Feb 10 '18 at 09:17

1 Answers1

18

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

enter image description here

enter image description here

emraz
  • 1,563
  • 20
  • 28