# Why can't CocoaPods install the required RTC SDK version? (/en/api-reference/faq/integration/cocoapods\_problems)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

## Unable to install the required RTC SDK version

If CocoaPods reports that none of your spec sources contain the requested SDK version, or `pod install` keeps an older version, check the configured sources, their indexes, and `Podfile.lock`.

### Configure the sources

Add the Agora CocoaPods CDN source at the top of `Podfile`. Keep your existing sources. Declaring a source replaces CocoaPods' default source, so include the public source if your project uses other public Pods. Place it before the Agora source:

```ruby
source 'https://cdn.cocoapods.org/'
source 'https://download.agora.io/cocoapods/'
```

Keep your existing SDK Pod name, full version, and component selection. Agora uses `AgoraRtcEngine_iOS` for the iOS Full SDK, `AgoraLite_iOS` for the iOS Lite SDK, `AgoraAudio_iOS` for the iOS Voice SDK, and `AgoraRtcEngine_macOS` for macOS. For complete examples, see the [iOS quickstart](/en/realtime-media/rtc/get-started-sdk/ios#install-the-sdk-1) or [macOS quickstart](/en/realtime-media/rtc/get-started-sdk/macos#install-the-sdk-2).

Updating only the public source does not add the Agora source. If the required version is still unavailable, confirm that its full Pod name and version are published in the Agora source's Podspec and version index. The availability of an SDK ZIP alone does not establish that CocoaPods can resolve that version.

### Refresh indexes and resolve dependencies

1. Check the Pod name and version constraint in `Podfile`.

2. In the directory containing `Podfile`, refresh the configured source indexes and install dependencies:

   ```bash
   pod install --repo-update
   ```


3. If the lockfile still prevents resolving the required SDK version, keep `Podfile.lock` and update only the SDK Pod you use. For example:

   **iOS Full**

   ```bash
   pod update AgoraRtcEngine_iOS --repo-update
   ```


   **macOS**

   ```bash
   pod update AgoraRtcEngine_macOS --repo-update
   ```


   Keep the version constraint unchanged when resolving the same version. To upgrade the SDK, first adjust that constraint. You do not need to delete the lockfile or update all dependencies.

After CocoaPods reports **Pod installation complete!**, check the installed SDK version and `SPEC REPOS` in `Podfile.lock`. The source used depends on your configured sources and the availability of the requested version. Running `pod update` does not guarantee a switch to the Agora source.
