# CocoaPods install guide

The AnyoneKit can be installed via [CocoaPods](https://cocoapods.org/) - a popular Swift / Objective-C dependancy manager.&#x20;

#### Initializing CocoaPods

From your Xcode project, first verify that CocoaPods is installed

```
pod --version
```

If this returns `Command Not Found: pod` you can install CocoaPods using Ruby

```
sudo gem install cocoapods
```

Once again, verify that you have a working pod version! From there, within your Xcode project directory, initialize CocoaPods:

```
pod init
```

This should create a file called `Podfile` in your working directory.

#### Importing AnyoneKit&#x20;

From the Podfile, within the **target** section, add the AnyoneKit pod (for now, the GitHub repo must be specified)

```ruby
target 'YourApp' do
  pod 'AnyoneKit', :git => 'https://github.com/anyone-protocol/AnyoneKit.git'
end
```

After these configurations are set, start the installation process

```
pod install
```

You should then be able to use. See some examples within the [GitHub repo](https://github.com/anyone-protocol/AnyoneKit/tree/pure_pod/Example) to explore more ahead of the official iOS SDK Release.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.anyone.io/sdk/ios-sdk-beta/cocoapods.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
