X code 5存档构建失败,但成功构建正常 [英] xcode 5 archive build fail, but normal build successfully

查看:243
本文介绍了X code 5存档构建失败,但成功构建正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以构建和我的设备上运行我的应用程序,但是当我试图建立档案,我得到了很多错误。的错误是我的第三个库 - 谷歌的protobuf。它表明,通过protobuf的所支持未检测#ERROR主机架构。但是,什么是archieve和普通身材之间的区别?毕竟,我成功地建立并运行我的应用程序在设备上,当我选择产品=>运行(CMD + R)。

I can build and run my app on my device, but when I tried to build archive, I got many errors. The errors are about my 3rd library - google protobuf. It showed that #error Host architecture was not detected as supported by protobuf. But what is the difference between archieve and normal build?? After all, I built successfully and ran my app on the device when I choose product=>run (cmd+R).

推荐答案

当你建立运行,X code通常用于建立仅在活动架构。当你归档建立由生成设置架构和有效架构的交集。

When you build to run, Xcode usually builds for the active architecture only. When you archive it builds all the architectures specified by the intersection of the Build Settings "Architectures and Valid Architectures".

所以,这可能是X code是试图建立一些架构,不是由您的protobuf的库,例如支持Arm64。

So it's likely that Xcode is trying to build for some architecture that isn't supported by your protobuf library, e.g. Arm64.

这篇关于X code 5存档构建失败,但成功构建正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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