RestKit 与 Xcode4 但不是 GitHub 子模块
我按照自述文件 开始使用 RestKit。将 RestKit 添加为 GitHub 子模块时一切正常。
有没有办法将 RestKit 添加到现有的 Xcode 4 项目中,但不能作为 GitHub 子模块?
我想要添加 RestKit 的项目未使用 GitHub 存储库进行设置,而是实际上会进入 subversion 存储库。
提前致谢。
I was following the readme to
get started using RestKit. Everything works just fine when adding RestKit as a GitHub submodule.
Is there a way I can add RestKit to an already existing Xcode 4 project but not as a GitHub submodule?
The project I want to add RestKit to is not set up with GitHub repository and will actually go into a subversion repository instead.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚下载了它,将其放在我的项目的根目录中,解压缩并将其重命名为 RestKit。
I just downloaded it, placed it in the root of myproject, unzipped it and renamed it to RestKit.
归根结底, git 子模块 只是硬盘上的一个文件夹。然而,从 git 的“观点”来看,它被认为是对另一个存储库(在特定提交时)的引用,而不是文件的文件夹。
因此,如果您仅使用 git(在本例中不是),那么它是一种简单但非常强大的嵌套项目或包含库的机制。
为了回答您的问题,我想您可以从命令行完成这一切,这可能比下载和解压缩源代码更快(当然取决于您的偏好):
从这里您可以根据 安装指南
At the end of the day a git submodule is merely a folder on your hard drive. However, from git's "viewpoint" it is recognized as a reference to another repository (at a specific commit) rather than a folder of files.
So if you are using git only (which you are not in this case) then it is a simple yet quite powerful mechanism of nesting projects or including libraries.
To answer your question, I guess you could do it all from the command line, which might be quicker than downloading and unzipping the source code (depending on your preference of course):
From here you can configure your project according to the installation guide