Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question

2 Answers

up vote 4 down vote accepted

I just downloaded it, placed it in the root of myproject, unzipped it and renamed it to RestKit.

share|improve this answer
1  
Hi jspooner. Thanks, did you just go github.com -> download, drag the entire folder, examples and all (15 Mb) into your Xcode project? I tried that and it seems pretty bloated. – RickiG May 23 '11 at 12:44
Yep thats it. I ran into a couple of other problems too... If you see Mach-O errors go ahead and include the files they list as optional. Once I got it up and running it works great! Much better than ObjectiveResource. – jspooner May 23 '11 at 16:10
It seems as a complete mess to add RestKit to an existing project under subversion.. Wish they would do a "drop in source" version. Just to be sure, did you go through the linking, adding header search path, adding dependencies etc. etc. to get it running? – RickiG May 24 '11 at 16:14
Yep, just replace step one with unzipping the download. Is there an specific error your seeing? – jspooner May 25 '11 at 14:50
I don't see why the configuration of RestKit should have anything to do with SVN or Git (Apart from cloning the repository) – Besi Dec 19 '11 at 22:33

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):

cd /path/to/your/project

git submodule add git://github.com/RestKit/RestKit.git RestKit
cd RestKit
# Checkout the current stable branch
git checkout 0.9-stable
# Remove the git repository
rm -fr .git/

From here you can configure your project according to the installation guide

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.