从GitHub获取API

时间:2011-05-30 22:17:03

标签: iphone xcode git github soundcloud

我已经设置了我的github帐户,我已经准备好了。我正在尝试关注these instructions,使用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

我错过了什么吗?

1 个答案:

答案 0 :(得分:3)

这些说明假设您正在为项目使用git。并根据错误消息,你没有。所以,你可能至少想要git init你的项目,但可能你会想要更多。

关于项目的位置 - 您希望SoundCloudAPI驻留在哪里。这将在当前目录中创建。