我的名字是Marco,我正在尝试在我的项目中使用RestKit。我对RestKit和iOS都很陌生,但是我是一位非常有经验的.NET程序员。
你们能帮帮我吗?
问题是我无法设置XCode来使用RestKit。每次我尝试编译它时,它总是会显示:
Undefined symbols for architecture i386:
_CGRectIsEmpty",引用自:
-[RKAbstractTableController addToOverlayView:modally:] in libRestKit.a(RKAbstractTableController.o)
"_CGRectContainsPoint",在以下引用中:
-[RKAbstractTableController resizeTableViewForKeyboard:] in libRestKit.a(RKAbstractTableController.o)
"_CGRectZero",提到:
-[RKAbstractTableController initWithTableView:viewController:] in libRestKit.a(RKAbstractTableController.o)
-[RKAbstractTableController showImageInOverlay:] in libRestKit.a(RKAbstractTableController.o)
-[RKRefreshGestureRecognizer initWithTarget:action:] in libRestKit.a(RKRefreshGestureRecognizer.o)
-[RKRefreshTriggerView initWithFrame:] in libRestKit.a(RKRefreshTriggerView.o)
-[RKAbstractTableController initWithTableView:viewController:] in libRestKit.a(RKAbstractTableController.o)
-[RKAbstractTableController showImageInOverlay:] in libRestKit.a(RKAbstractTableController.o)
-[RKRefreshGestureRecognizer initWithTarget:action:] in libRestKit.a(RKRefreshGestureRecognizer.o)
-[RKRefreshTriggerView initWithFrame:] in libRestKit.a(RKRefreshTriggerView.o)
-[RKAbstractTableController initWithTableView:viewController:] in libRestKit.a(RKAbstractTableController.o)
-[RKAbstractTableController showImageInOverlay:] in libRestKit.a(RKAbstractTableController.o)
-[RKRefreshGestureRecognizer initWithTarget:action:] in libRestKit.a(RKRefreshGestureRecognizer.o)
-[RKRefreshTriggerView initWithFrame:] in libRestKit.a(RKRefreshTriggerView.o)
"_CGRectGetWidth",被以下内容引用:
-[RKRefreshGestureRecognizer observeValueForKeyPath:ofObject:change:context:] in libRestKit.a(RKRefreshGestureRecognizer.o)
-[RKRefreshTriggerView layoutSubviews] in libRestKit.a(RKRefreshTriggerView.o)
"_CGRectGetMidY",被以下内容所引用:
-[RKRefreshTriggerView layoutSubviews] in libRestKit.a(RKRefreshTriggerView.o)
"_CGRectIntegral",被以下引用:
-[RKRefreshTriggerView layoutSubviews] in libRestKit.a(RKRefreshTriggerView.o)
"_CGRectGetHeight",被以下引用:
-[RKRefreshTriggerView layoutSubviews] in libRestKit.a(RKRefreshTriggerView.o)
"_CGRectOffset",引用自:
-[RKRefreshTriggerView layoutSubviews] in libRestKit.a(RKRefreshTriggerView.o)
ld:符号未找到,适用于i386架构
clang:错误:链接器命令失败,退出代码1(使用-v查看调用)
当我删除-ObjC -all_load链接器标志时,我的项目可以“正常”构建。但是,当我尝试使用它时,我遇到了错误:
2012-06-29 10:40:08.346 AgroERP[5234:fb03] -[NSURL queryParameters]:向实例0x6e4cd60发送了无法识别的选择器
2012-06-29 10:40:08.349 AgroERP[5234:fb03] * 终止应用程序,因为出现未捕获的异常'NSInvalidArgumentException',原因:'-[NSURL queryParameters]:向实例0x6e4cd60发送了无法识别的选择器'
* 第一个抛出调用堆栈:
(0x1780022 0x19e6cd6 0x1781cbd 0x16e6ed0 0x16e6cb2 0x2424c 0x2405f 0x241cf 0x240d4 0x2751 0x1781e99 0xa0114e 0xa010e6 0xaa7ade 0xaa7fa7 0xaa6d8a 0xa262cf 0xa265e6 0xa0cdc4 0xa00634 0x1f8bef5 0x1754195 0x16b8ff2 0x16b78da 0x16b6d84 0x16b6c9b 0x1f8a7d8 0x1f8a88a 0x9fe626 0x1fac 0x1f45 0x1)
终止调用时抛出异常
在以下行中:
RKURL *baseURL = [RKURL URLWithBaseURLString:@"http://192.168.1.101/AgroERPAPI/AuthenticationClient.svc"];
对于打扰您,我深表歉意,但我真的需要帮助。非常感谢!