Xcode 5.1升级后的体系结构链接错误 [英] Architecture linking error after Xcode 5.1 upgrade

查看:94
本文介绍了Xcode 5.1升级后的体系结构链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下错误:
libGPUImage.a,该文件是为归档而构建的,而不是要链接的体系结构(armv7s),
libPods.a,该文件是为归档而构建的,而不是要链接的体系结构(armv7s)
还有更多...

I am having these errors:
libGPUImage.a, file was built for archive which is not the architecture being linked (armv7s),
libPods.a, file was built for archive which is not the architecture being linked (armv7s)
and more...

这些是我的项目设置:
体系结构:armv7,armv7s,arm64
仅构建活动体系结构:否
有效架构; armv6 armv7 armv7s arm64 i386

These are my project settings:
Architectures:armv7,armv7s,arm64
Build Active Architectures Only:NO
Valid Architectures;armv6 armv7 armv7s arm64 i386

除了使用iOS 7.1 SDK下载最新的Xcode 5.1之外,我没有进行任何其他更改.该项目可与Xcode 5.0和iOS 7.0 SDK很好地配合使用.可能是什么问题呢?

I didn't change anything except for downloading latest Xcode 5.1 with the iOS 7.1 SDK. This project worked fine with Xcode 5.0 and iOS 7.0 SDK. What could be the problem?

推荐答案

开始构建设置->架构

您可能已经设置了标准体系结构,对吧?

You probably have Standard Architectures set, right?

从Xcode 5.1开始,标准体系结构包括arm64,您尚未准备好对其进行支持.

As of Xcode 5.1 Standard Architectures includes arm64, which you are not ready to support.

选择其他.

双击$(ARCHS_STANDARD)并将其更改为$(ARCHS_STANDARD_32_BIT)

doubleclick $(ARCHS_STANDARD) and change it to $(ARCHS_STANDARD_32_BIT)

注意:这是一个临时修复程序.您可能正在使用某些静态库,而该库没有64位分片.查看是否有可用的,然后将体系结构"切换回标准体系结构".

Note: This is a temporary fix. You are probably using some static library that didn't come with a 64-bit slice. See if there is one available and then switch Architecture back to Standard Architectures.

这篇关于Xcode 5.1升级后的体系结构链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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