如何将 RestKit Framework (restkit.org) 与 xCode 4 集成?
我按照 github 页面上的说明进行操作,但出现了问题(最肯定是我:P)但是,您知道在 Xcode4 RestKit 中集成/使用任何好的教程吗?
谢谢!
I followed the instructions on the github page but something is wrong (most certainly is me: P) but, Do you know about any good tutorial for integrate / use in Xcode4 RestKit?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
从此链接下载最新版本 http://restkit.org/
并解压 zip 文件夹,您将找到一个 ReadMe.md 文件,其中解释了安装 Xcode 4.x 的步骤如下所示
Xcode 4.x (Git Submodule)
git submodule add git://github.com/RestKit/RestKit.git RestKit
"$(SOURCE_ROOT)/RestKit/Build"
目录。 请勿选中递归
复选框。“$(SOURCE_ROOT)/RestKit/Build/$(BUILD_STYLE)-$(PLATFORM_NAME)”
目录。注意:仅当您不使用 DerivedData 时才需要这样做。
-ObjC -all_load
。使用完成按钮关闭编辑器。恭喜,您现在已完成将 RestKit 添加到基于 Xcode 4 的项目中!
现在,您只需在应用程序中的适当位置添加 RestKit 库的包含内容即可。相关内容包括:
Download the latest version from this Link http://restkit.org/
and extract the zip folder and you will find a ReadMe.md file which explains you steps to install for Xcode 4.x as shown below
Xcode 4.x (Git Submodule)
git submodule add git://github.com/RestKit/RestKit.git RestKit
"$(SOURCE_ROOT)/RestKit/Build"
directory you have added to your project. DO NOT check theRecursive
checkbox."$(SOURCE_ROOT)/RestKit/Build/$(BUILD_STYLE)-$(PLATFORM_NAME)"
directory you have added to your project.NOTE: This is only necessary if you are NOT using DerivedData.
-ObjC -all_load
. Dismiss the editor with the Done button.Congratulations, you are now done adding RestKit into your Xcode 4 based project!
You now only need to add includes for the RestKit libraries at the appropriate places in your application. The relevant includes are:
我发现本教程对于使其在 xCode 4.0 上运行非常有用。
http://liebke.github.com/restkit-github-client-example/
I found this tutorial very useful to make it work on xCode 4.0.
http://liebke.github.com/restkit-github-client-example/
我按照这个陡峭的 https://github 进行了构建。 com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x 和 guoleii 是对的。但我需要更改所有者目录。
I did my build following this steeps https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x and guoleii is right. But I needed to change the owner directory.
您看过 RestKit 的 Google 群组中的这个帖子吗?
链接 1
链接 2
尝试在此处进行搜索。但就目前而言,RestKit 和 Xcode 4 似乎存在很多问题,甚至还有一个 YouTube 视频显示问题(没有显示操作方法)。
Have you seen this threads from RestKit's Google Group?
link 1
link 2
Try searching there. But for now, there seems to be A LOT of issues with RestKit and Xcode 4, there's even a YouTube video showing the problems (none showing a how-to).
您是否根据 github.com/RestKit 上的 wiki 页面“Installing RestKit in Xcode 4.x”构建了 RestKit?我认为有一点错误。这是我的解决方案: 1. 在“构建阶段”-> “Link Binary With Libraries”,删除 RestKit.framework 并添加 Security.frameWork 2. 再次构建
即可。
did you build RestKit according to the wiki page "Installing RestKit in Xcode 4.x" on github.com/RestKit? i think there is a little mistake. here is my solution: 1. in "Build Phases" -> "Link Binary With Libraries", delete the RestKit.framework and add Security.frameWork 2. build again
then it works.
我刚刚尝试在新创建的 Xcode 5 iOS 7.0 项目上安装 RestKit。我尝试下载该项目并按照上述步骤操作,但我丢失了 RestKit/Vendor 文件夹中的大部分内容。经过一些研究后,我采用了子模块策略,这让我从这些文件夹中获得了所有信息。
从命令提示符将目录更改为您的项目文件夹,对我来说,
如果您没有 git 存储库,则应该从那里运行此命令
注意:你必须下载 git 来安装它,如果你还没有安装它
,那么你必须运行这些命令将restkit下载到你的项目文件夹中
之后,你应该转到上面 Nakkeeran 的答案并从步骤 2 开始,设置过程。在第 7 步中,系统会要求您将“$(SOURCE_ROOT)/RestKit/Build”添加到标头搜索路径中,但经过仔细检查,RestKit 框架不再具有构建文件夹,因此您应该将其更改为“$(SOURCE_ROOT)/ RestKit/Code”以适合当前版本的 Rest Kit
我希望这会有所帮助,这里是我发布的子模块信息的链接。
RestKit安装子模块方法
I just tried to install RestKit on a newly created Xcode 5 iOS 7.0 project. I tried downloading the project and following the steps above, but i was missing most of the content with in the RestKit/Vendor folder. After doing a bit of research i did the submodule tactic and that got me all of the information from those folders.
From the command prompt change directory into your project folder, for me it was
From there you should run this command if you have no git repository
Note: you must download git to install this, if you have not already
after that you must run these commands to download restkit into your project folder
After that, you should go up to Nakkeeran's answer above and start from step 2, to set up the process. In step 7 you will be asked to add "$(SOURCE_ROOT)/RestKit/Build" to your header search paths, but upon closer inspection the RestKit framework no longer has the build folder so you should change that to "$(SOURCE_ROOT)/RestKit/Code" to fit the current version of Rest Kit
I hope this helps, and here is a link to the submodule information i posted.
RestKit Installation Submodule Method