如何在 Xcode 4.2 中针对 RestKit 框架进行构建?
我正在尝试遵循此 教程将 RestKit 集成到我的项目中,但我遇到了一些问题。当我添加目标依赖项时,弹出的对话框没有靶心。我仍然选择 RestKit 一个(旁边有一个白色的小建筑。然后,当我单击“与库链接”时,我没有选择为 RestKit 添加库。我在我当前的项目(一个空白项目)中尝试过此操作,似乎没有任何效果。
I am trying to follow this tutorial for integrating RestKit into my project but I am running into some problems. When I add a target dependencies the dialog that popup does not have the bulls eye. I still select the RestKit one (this has a little building next to that's white. Then when I click on Link with Libraries, and I dont get the choices to add the libraries for restkit. Ive tried this in my current project, a blank project, and nothing seems to work. Any ideas what I am doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该教程有点过时了。他们更新了 Restkit 的构建方式(简化了)。 Restkit 邮件列表上有一个关于它的帖子。
也就是说,最新 Xcode 的情况如下:
因此,对于 iOS,您可以选择列表中的第一个,带有看起来像房子的小图形。对于 Mac,您可以选择框架。
That tutorial is a little out of date. They updated the way Restkit builds (simplified it). There's a thread about it on the Restkit mailing list.
That said, here's what it would look like with the latest Xcode:
So for iOS you'd select the first on the list, with the little house-looking graphic. For Mac you'd choose the framework.
我在 https://github.com/ 找到了该教程RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x 与 Xcode4.2 配合使用。确保遵循所有指示。但是,这里有一个问题。我无法让它与我从 xcode3 转换的项目一起使用。或许可以,但放弃了。我在 4 中创建了一个新项目,将所有源代码放入其中,然后按照上述教程中的说明进行操作。
I found the tutorial at https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x to work with Xcode4.2. Make sure you follow all the directions. But, here's the catch. I couldn't get it to work with a project that I convert from xcode3. Probably could have but gave up. I made a new project in 4, dropped all my sources in it, then followed the directions in the above tutorial.
您只需将 libRestKit.a 文件从 RestKit 项目的产品组拖到需要它的构建目标的链接库构建阶段即可。
You can just drag the libRestKit.a file from the Products Group of the RestKit project into the Link with Libraries Build Phase of the build target that needs it.