> For the complete documentation index, see [llms.txt](https://docs.anyone.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anyone.io/sdk/ios-sdk-beta/cocoapods.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
