ern-container-transformer-xcframework

1.0.3 • Public • Published

XCFramework Container Transformer

ci

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

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"
  }
]

Programmatically

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

Package Sidebar

Install

npm i ern-container-transformer-xcframework

Weekly Downloads

3

Version

1.0.3

License

Apache-2.0

Unpacked Size

10.7 kB

Total Files

10

Last publish

Collaborators

  • electrode-native