Xcode 7警告:目标文件是为比链接的iOS版本更高的版本构建的 [英] Xcode 7 warnings: object file was built for newer iOS version than being linked

查看:87
本文介绍了Xcode 7警告:目标文件是为比链接的iOS版本更高的版本构建的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将Google Cloud Messaging集成到了针对iOS 7和iOS 8的应用程序中.刚刚拿到Xcode 7 beta 4来开始获得iOS 9支持,现在链接器出现错误:

I recently integrated Google Cloud Messaging into an app targeting iOS 7 and iOS 8. Just grabbed Xcode 7 beta 4 to get started on iOS 9 support, and now I'm getting an error from the linker:

ld: warning: object file (.../Pods/GoogleInterchangeUtilities/Libraries
/libProtocolBuffers.a(Descriptor.pb.o)) was built for newer iOS version (8.3)
than being linked (7.0)

以及更多类似的内容,用于libProtocolBuffers.a的各个部分.

and a handful more like that all for parts of libProtocolBuffers.a.

这是否意味着需要iOS 8.3才能使用GCM库?如果是这样,为什么Xcode 6会愉快地吐出代码(根据我在iOS 7设备上的测试中的所有出现),将推送通知发送到iOS 7.3而没有问题?

Does this mean that iOS 8.3 is required to use the GCM library? If so, why did Xcode 6 happily spit out code that (by all appearances in my testing with iOS 7 devices) delivered push notifications to iOS 7.3 without issue?

考虑到它们只是警告,我仍然可以编译,但是我不希望发布错误的代码.

Given that they're just warnings, I can still compile fine, however I prefer not to ship code that is wrong.

编辑:我通过电子邮件发送给google,他们说,高层人士会对此进行调查.同时,如果您正在阅读本手册并被警告打扰,也许还可以通过电子邮件发送,以便鼓励他们进行处理.

I emailed google and they said top people will look into it. In the mean time, if you're reading this and bothered by the warning, maybe also email so they'll be encouraged to deal with it.

推荐答案

这仅表示GCM依赖的其中一个库(此处为协议缓冲区)是为8.3构建的,尽管它与GCM的min sdk版本(即7.0)兼容. XCode 7更加严重,并且将其报告为警告,但是以前的版本始终没有报告它.

This just means that one of the libraries(Protocol Buffers here) GCM depends on was built for 8.3 although it's compatible with the min sdk version of GCM i.e. 7.0. XCode 7 is just more severe and reports it as a warning but it was always there just not being reported by previous versions.

总体来说这只是无害的,一切都应该正常工作.此外,除非Google通过使用min sdk版本(7.0)构建所有依赖项来修补GCM,否则您将无能为力.

Overall this is just harmless, everything should work fine. Also there is not much that you can do unless Google patches GCM by building all of it's dependencies with the min sdk version (7.0).

这篇关于Xcode 7警告:目标文件是为比链接的iOS版本更高的版本构建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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