Apple Mach-O链接器错误armv7s& libGoogleAdMobAds.a [英] Apple Mach-O Linker Error armv7s & libGoogleAdMobAds.a

查看:90
本文介绍了Apple Mach-O链接器错误armv7s& libGoogleAdMobAds.a的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级了我的应用程序,使其可以在新的iPhone5模拟器上运行,但是,当我尝试为我的iPhone 4S设备构建该应用程序时,出现此Apple Mach-O Liner错误.

I've just upgraded my app to run on the new iPhone5 simulator, however when I try to build it for my iPhone 4S device, I get this Apple Mach-O Liner error.

ld:文件是通用文件(3个切片),但不包含a(n)armv7s 片:/Users/Darren/Documents/Dev stuff/My App/GoogleAdMobAdsSDKiOS-5.0.5/libGoogleAdMobAds.a用于架构 armv7s clang:错误:链接器命令失败,退出代码为1(使用-v可以 参见调用)

ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/Darren/Documents/Dev stuff/My App/GoogleAdMobAdsSDKiOS-5.0.5/libGoogleAdMobAds.a for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)

有人可以阐明此错误的原因及其解决方法吗? 我正在将adWhirl与AdMob结合使用.

Can someone shed some light on what this error it and how to fix it? I am using adWhirl with AdMob.

谢谢

编辑- 在另一个项目中,文件libfacebook_ios_sdk.a也会出现此错误.

EDIT --- I am also getting this error in another project for the file libfacebook_ios_sdk.a

推荐答案

与我在如果要删除对任何体系结构的支持,请尝试以下操作:

If you want to remove the support for any architecture, try this:

项目->构建设置->从有效架构"中删除该架构

Project -> Build Settings -> remove the architecture from "valid architectures"

您可以将其用作临时解决方案,直到库已更新.您必须从自己的项目中删除该标志.

You can use this as a temporary solution until the library has been updated. You have to remove the flag from your own project.

这篇关于Apple Mach-O链接器错误armv7s& libGoogleAdMobAds.a的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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