> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# iOS installation

<Note>
  If you're looking for information on how to integrate the SDK, check out our
  [Universal Checkout](/checkout/overview) integration guide.
</Note>

## With CocoaPods

Add the following to your `Podfile` file:

```ruby RUBY theme={"dark"}
use_frameworks!

target 'MyApp' do

  # 👇 Add this line
  pod 'PrimerSDK'

  # ...

end
```

Then run `pod install` to install PrimerSDK on your workspace.

<Note>
  In case you encounter an error that the bundle needs signing on Xcode 14, add the following post-install script in your podfile.

  ```ruby RUBY theme={"dark"}
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
        target.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end
  end
  ```
</Note>

## With Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into Xcode. In order to add PrimerSDK with Swift Package Manager:

1. Select your project, and then navigate to `Package Dependencies`
2. Click on the **+** button at the bottom-left of the `Packages` section
3. Paste [https://github.com/primer-io/primer-sdk-ios.git](https://github.com/primer-io/primer-sdk-ios.git) into the **Search Bar,** or search for `primer-sdk-ios` in the **Search Bar**.
4. Press **Add Package**
5. Let Xcode download the package and set everything up

<Note>
  For more details about SDK versions, please see our
  [changelog](/changelogs/api-changelog).
</Note>
