我可以使用-ObjC以外的链接器链接iOS版GoogleMaps SDK吗 [英] Can I link GoogleMaps SDK for iOS with a linker flag other than -ObjC

查看:102
本文介绍了我可以使用-ObjC以外的链接器链接iOS版GoogleMaps SDK吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用GoogleMapsSDK和Parse的框架.

如果我一起使用它们,则由于链接器标志-ObjC,解析中的错误会触发所需的facebook密钥.在Parse的论坛上以及在这里,除了GoogleMaps之外的其他框架,这都是一个文献充分的问题,一般的解决方案是导入Facebook SDK.我对以任何方式使用Facebook都不感兴趣,并且我不想将其添加到我的项目中,因此,如果我可以通过其他方式调用链接器标志,将不胜感激.

一些答案​​说明了有关-force_load而不是-ObjC的信息,但是它需要一些我不确定如何获取的其他信息.

句子中:

请提供确切的-force_load,它将与GoogleMapsSDK一起使用,以避免使用链接器标志-ObjC

预先感谢

解决方案

当我测试原始版本的SDK 1.0时,我尝试使用以下方法:

-force_load $(PROJECT_DIR)/GoogleMaps.framework/GoogleMaps

有关我正在尝试的操作的更多详细信息请参阅此处),此后我一直没有尝试过,因此它可能不适用于当前版本.

您可能需要根据相对于项目目录的GoogleMaps框架路径来稍微调整-force_load.

您可以使用Parse和-ObjC提供指向错误报告的链接吗?我正在将Google Maps SDK与-ObjC和Parse一起使用(但不适用于Facebook),并且没有任何问题.但是,如果将来我想对Parse做更多的事情,我想知道该注意些什么.谢谢.

I'm using GoogleMapsSDK, and Parse's framework.

If I use them together, a bug in Parse triggers required facebook keys because of the linker flag -ObjC. This is a well documented problem on Parse's forums and on here for other frameworks besides GoogleMaps, and the general solution is to import Facebook SDK. I'm not interested in using facebook in any way, and I'd prefer not to add it to my project, so if there's a different way that I can call the linker flag it would be most appreciated.

Some of the answers say something about -force_load as opposed to -ObjC but it requires some additional info that I'm not sure how to get.

IN A SENTENCE:

Please provide an exact -force_load that will work with the GoogleMapsSDK to avoid using the linker flag -ObjC

Thanks in advance

解决方案

Back when I was testing the original version 1.0 of the SDK I tried using this:

-force_load $(PROJECT_DIR)/GoogleMaps.framework/GoogleMaps

More details on what I was trying here.

It seemed to work at the time, although it caused problems with Google's fix to allow the SDK to not crash on startup with iOS 5.0 with SDK 1.1.0 (see here), and I haven't tried it since, so it might not work with the current version.

You might need to adjust the -force_load a bit depending on your path to the GoogleMaps framework relative to your project directory.

Can you provide a link to the bug reports with Parse and -ObjC? I am using the Google Maps SDK with -ObjC and Parse (but not with Facebook), and haven't had any problems. However I'd be interested in knowing what to look out for in case I want to do more with Parse in the future. Thanks.

这篇关于我可以使用-ObjC以外的链接器链接iOS版GoogleMaps SDK吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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