Usage no npm install needed!

<script type="module">
  import ernContainerTransformerXcframework from '';


XCFramework Container Transformer


This iOS only transformer will build the container and package it as an XCFramework for distribution.
It can be used in conjunction with the cocoapod git publisher to publish it as a CocoaPod to a git repository, so that any client mobile application can add the container as a pod dependency in their Podfile.

The script executed to build the container and generate the xcframework is not customizable.
Based on needs, future updates of this transformer might introduce additional customization.


  • containerPath : Path to the Container to transform


With ern transform-container CLI command

ern transform-container --containerPath [pathToContainer] -t xcframework

With Cauldron

To automatically transform the Cauldron generated Containers of a target native application and platform, you can add a transformer entry in the Cauldron in the Container generator configuration object as follow :

Electrode Native <= 0.31

"transformers": [
    "name": "xcframework"

Electrode Native >= 0.32

"pipeline": [
    "name": "xcframework"


import ScriptTransformer from 'ern-container-transformer-xcframework'
const transformer = new XCFrameworkTransformer()
    /* Local file system path to the Container */
    containerPath: string