使用force_load链接器标志和RestKit(IOS) [英] Using the force_load linker flag with RestKit (iOS)

查看:259
本文介绍了使用force_load链接器标志和RestKit(IOS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Facebook的iOS SDK中,AWS的iOS SDK和RestKit。为了使Facebook和AWS发挥好(有重复的符号),我不得不改变我的其他连接标志 -force_load Facebook的IOS-SDK / LIB / Facebook的ios- SDK / libfacebook_ios_sdk.a 。现在,我得到这个RestKit相关的错误,当我跑我的应用程序:

I am using the Facebook iOS SDK, the AWS iOS SDK, and RestKit. To make Facebook and AWS play nice (there were duplicate symbols), I had to change my other linker flags to -force_load facebook-ios-sdk/lib/facebook-ios-sdk/libfacebook_ios_sdk.a. Now, I am getting this RestKit-related error when I run my app:

2012-06-28 15:55:15.336的MyApp [1640:707] - [__ NSCFString isIPAddress]:无法识别的选择发送到实例0x35f440

2012-06-28 15:55:15.336 MyApp[1640:707] -[__NSCFString isIPAddress]: unrecognized selector sent to instance 0x35f440

2012-06-28 15:55:15.338的MyApp [1640:707]的 * 的终止应用程序由于未捕获的异常NSInvalidArgumentException,原因是:' - [__ NSCFString isIPAddress]:无法识别的选择发送到例如0x35f440

2012-06-28 15:55:15.338 MyApp[1640:707] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString isIPAddress]: unrecognized selector sent to instance 0x35f440'

我不能使用 -ObjC 全负荷连接器选项,因为这$ P $从建筑pvents我与Facebook和AWS。

I cannot use the -ObjC and all-load linker flags because that prevents me from building with Facebook and AWS.

有谁知道我应该怎么设置我的连接标志,这样我可以使用所有3(FB,AWS,RestKit)在一起吗?谢谢!

Does anyone know how I should set my linker flags so that I can use all 3 (FB, AWS, RestKit) together? Thanks!

推荐答案

Chyeahh!我想到了。该标志应设置为

Chyeahh! I figured it out. The flags should be set as

-force_load facebook-ios-sdk/lib/facebook-ios-sdk/libfacebook_ios_sdk.a -force_load $(BUILT_PRODUCTS_DIR)/libRestKit.a

这篇关于使用force_load链接器标志和RestKit(IOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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