1

我已经设置了我的 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

我错过了什么吗?

4

1 回答 1

3

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

至于在你的项目中去哪里——你想要SoundCloudAPI居住的地方。它将在当前目录中创建。

于 2011-05-30T22:27:25.530 回答