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.
Inputs
-
containerPath
: Path to the Container to transform
Usage
ern transform-container
CLI command
With 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"
}
]
Programmatically
import ScriptTransformer from 'ern-container-transformer-xcframework'
const transformer = new XCFrameworkTransformer()
transformer.transform(
{
/* Local file system path to the Container */
containerPath: string
}
})