Iphone 从GitHub获取API设置

Iphone 从GitHub获取API设置,iphone,xcode,git,github,soundcloud,Iphone,Xcode,Git,Github,Soundcloud,我已经建立了我的github帐户,准备好了。我正试图遵循,使用Soundcloud为iPhone项目设置API包装,但我有点迷茫: 1. Go to your project directory. 2. Add the Cocoa API Wrapper as a Git Subproject git submodule add git://github.com/soundcloud/cocoa-api-wrapper.git SoundCloudAPI 3. Update t

我已经建立了我的github帐户,准备好了。我正试图遵循,使用Soundcloud为iPhone项目设置API包装,但我有点迷茫:

 1. Go to your project directory.
 2. Add the Cocoa API Wrapper as a Git Subproject

    git submodule add git://github.com/soundcloud/cocoa-api-wrapper.git SoundCloudAPI

 3. Update the Subprojects (the API Wrapper includes the NXOAuth2Framework as a subproject)

    git submodule update --init --recursive
我的问题是:在我的项目目录中我应该去哪里?与XCode项目文件的级别相同?而且#2中的命令对我也不起作用。我得到一个错误:

 fatal: Not a git repository (or any of the parent directories): .git

我错过什么了吗

这些说明假设您在项目中使用git。根据错误消息,您没有。因此,您可能希望至少
git init
您的项目,但可能需要更多


至于你的项目要去哪里——你希望
SoundCloudAPI
驻留在哪里。这将在当前目录中创建。

Man,这太令人困惑了!我不希望我的项目驻留在GitHub上。我只想启动并运行基本的SoundCloudAPI。有没有更简单的方法可以做到这一点?如果您不想要git,您应该在第一个命令中将
子模块add
替换为
clone
,并完全忽略第二个命令。