包括外部Json库到项目给出错误

时间:2017-08-13 16:16:03

标签: ios objective-c json web-services

我正在尝试整合网络服务

http://api.punchfork.com/recipes?key=56d6e5d77b8f8f66&q=fish

我的项目。我正在关注这个iPhone App Design - Loading Data From A Webservice API - Part 9 of 10。在本教程中,我被提到puchfork网站获取网络服务网址。此网址无效。   我已经包含了json库

1-JSON-URL

2-JSON

这两个库程序不会构建并产生以下错误。

1-Apple Mach-O链接器错误组“_OBJC_CLASS _ $ _ Json”,引自:

2-clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) 由于突出显示的功能行

,会发生这些错误
-(void) loadRecipes
{
    NSString *url=@"http://api.punchfork.com/recipes?key=56d6e5d77b8f8f66&q=fish";
  

Json * myJsonParse = [[Json alloc] init];

     

[myJsonParse startLoadingObjectWithUrl:url andDelegate:self];

    }

我如何摆脱这些错误?您可以从此链接下载示例项目。https://drive.google.com/file/d/0B5pNDpbvZ8SnS0ZoTnBVN1p4WHM/view?usp=sharing enter image description here

0 个答案:

没有答案