iOS Failed to find matching arch for 64-bit Mach-O input file

from where to see a blog I forgot, there is no link here.

Takeshi – mato – iPhone itunesstored – & lt; Warning> : [ApplicationWorkspace]: Failed to install application: cn.ac.sec.HealthCareDoctor; /var/mobile/Media/Downloads/2686208517752305961/4992622475604659910; Error Domain=LaunchServicesError Code=0 “(null)” UserInfo={Error=IncorrectArchitecture, ErrorDescription=Failed to find matching arch for 64-bit Mach-O input file /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.K3my5D/extracted/Payload/HealthCareDoctor.app/HealthCareDoctor}

One less editor to pack in build Setting

Build Active Architecture Only sets Release to NO to contain all compilers

This property is set to YES for faster compilation on Debug, which only compiles the current architecture version.

and set to no, all versions are compiled.

this is the architecture corresponding to the device:

  
  1. ARMv8/ARM64: iPhone 6(Plus), iPhone 5s, iPad Air(2), Retina iPadMini(2,3)

    ARMv7s: iPhone 5, iPhone 5c, iPad 4 

    ARMv7: iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad2, iPad 3, iPadMini   

    ARMv6: iPhone, iPhone 3G, iPod 1G/2G

The compiled version is backward compatible. For example, if you set this value to yes, the compiled version with iphone4 will run with armv7, and iphone5 will also run, but the device with armv6 will not.

therefore, debug can choose to set to yes, release to no, to adapt to different devices.

Read More: