Search Docs
Loading...
Skip to content

CocoaPods Spec Repository

On iOS, @imgly/editor-react-native and @imgly/camera-react-native install the native IMGLYUI and IMGLYCamera pods through CocoaPods. CocoaPods trunk stops accepting new pod versions on December 2, 2026, as announced in the CocoaPods Trunk Read-only Plan. IMG.LY publishes new CE.SDK pods to its own spec repository at github.com/imgly/cesdk-specs.

Add this repository to your Podfile once. Without it, pod install cannot find the CE.SDK pods of a release that ships after trunk becomes read-only.

What Changes#

  • New CE.SDK pod versions are published to the IMG.LY spec repository.
  • Versions that are already on trunk stay there, and trunk stays readable, so your current builds keep working.
  • Your other pods, such as those of other libraries, still come from trunk.

Update a React Native CLI App#

Open ios/Podfile and add these two lines at the top of the file:

ios/Podfile
source 'https://github.com/imgly/cesdk-specs.git'
source 'https://cdn.cocoapods.org/'

Keep both lines. A Podfile without a source line uses trunk by default, but a Podfile with one source line uses only the sources that it lists. The trunk line keeps all of your other pods resolving.

Then update the CE.SDK pods:

Terminal window
cd ios && bundle exec pod update IMGLYUI

pod install keeps each pod that Podfile.lock already lists on the source that the lock file records, so the CE.SDK pods of an existing app stay on trunk. pod update resolves the pods that you name again, from the first source in your Podfile. If your app uses only the camera, name IMGLYCamera instead. If it uses both the editor and the camera, name both:

Terminal window
cd ios && bundle exec pod update IMGLYUI IMGLYCamera

Update an Expo App#

Expo generates ios/Podfile during npx expo prebuild, so an edit to the Podfile is lost on npx expo prebuild --clean. Add the source lines with a config plugin instead.

Create plugins/withImglyCocoaPodsSource.js in your project:

plugins/withImglyCocoaPodsSource.js
const { withPodfile } = require('expo/config-plugins');
const SOURCES = [
"source 'https://github.com/imgly/cesdk-specs.git'",
"source 'https://cdn.cocoapods.org/'",
];
module.exports = function withImglyCocoaPodsSource(config) {
return withPodfile(config, (config) => {
const { contents } = config.modResults;
if (!contents.includes(SOURCES[0])) {
config.modResults.contents = `${SOURCES.join('\n')}\n${contents}`;
}
return config;
});
};

Add the plugin to the plugins list in your app.json:

app.json
{
"expo": {
"plugins": [
"./plugins/withImglyCocoaPodsSource",
[
"expo-build-properties",
...
]
]
}
}

Then generate the native project again:

Terminal window
npx expo prebuild --clean

--clean deletes the ios/ folder with its Podfile.lock, so the pods resolve again from the first source in your Podfile.

Check the Result#

Open ios/Podfile.lock. The SPEC REPOS section lists the IMG.LY repository, and the CE.SDK pods appear below it:

ios/Podfile.lock
SPEC REPOS:
https://github.com/imgly/cesdk-specs.git:
- IMGLYCamera
- IMGLYCore
- IMGLYEditor
- IMGLYEngine
- IMGLYUI
# ...

Check that the PODS section shows the CE.SDK version of your package.json, for example IMGLYUI (1.87.0).

If the CE.SDK pods still appear under trunk, Podfile.lock kept their old source. Run the pod update command above again, with every CE.SDK pod that your app uses.

A CE.SDK version that was released before the IMG.LY repository existed is only on trunk. Its pods appear under trunk in SPEC REPOS, and that is correct. When you update to a newer CE.SDK version, run pod update again, and the pods move to the IMG.LY repository.

Troubleshooting#

CocoaPods Could Not Find Compatible Versions#

[!] CocoaPods could not find compatible versions for pod "IMGLYUI":
In Podfile:
IMGLYEditorModule (from `../node_modules/@imgly/editor-react-native`) was resolved to 1.88.0, which depends on
IMGLYUI (= 1.88.0)

Check these causes in order. In a React Native CLI app, run each pod command with bundle exec, as in bundle exec pod install --repo-update.

  1. The Podfile has no IMG.LY source line. Add both source lines, as shown above.
  2. Podfile.lock pins an older version or its old source. In the ios/ directory, run pod update IMGLYUI for the editor, pod update IMGLYCamera for the camera, or name both. Each IMG.LY plugin pod, such as IMGLYPluginBackgroundRemoval, requires IMGLYUI at exactly its own version. If your Podfile lists plugin pods, set them to the new version and update them in the same command, for example pod update IMGLYUI IMGLYPluginBackgroundRemoval.
  3. Your local copy of the spec repositories is out of date. In the ios/ directory, run pod install --repo-update.
  4. In an Expo app, the plugin did not run. Check that app.json lists it, then run npx expo prebuild --clean.

Found Multiple Specifications#

[!] Found multiple specifications for `IMGLYEngine (1.88.0)`:

This warning is expected while a version is on both trunk and the IMG.LY repository. CocoaPods uses the first source in your Podfile, so no action is needed.

Other Pods Are Not Found#

The Podfile lists the IMG.LY source but not trunk. Add source 'https://cdn.cocoapods.org/' below the IMG.LY source line.