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

来源:互联网 发布:photoshop cs4 mac 编辑:程序博客网 时间:2024/06/06 01:44

从哪看到的一篇博客我忘了,这里就不加链接了。

takeshi-mato-iPhone itunesstored →  <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}

少打包了一种编辑器,在build setting里
build active architecture only 把release 设置为NO,才能包含所有的编译器

这个属性设置为yes,是为了debug的时候编译速度更快,它只编译当前的architecture版本。
而设置为no时,会编译所有的版本。
这个是设备对应的architecture:

    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

编译出的版本是向下兼容的,比如你设置此值为yes,用iphone4编译出来的是armv7版本的,iphone5也可以运行,但是armv6的设备就不能运行。
所以,一般debug的时候可以选择设置为yes,release的时候要改为no,以适应不同设备。


0 0