Native iOS
Trapeze makes it easy to automate the configuration of your native iOS projects. When targeting a standalone iOS project, no operations for other platforms (Android, etc) will apply.
Configuration Tool
To use the Configuration-driven experience, first create a yaml file using the options available:
Here's an example:
config.yaml
platforms:
ios:
targets:
App:
version: 16.4
npm install @trapezedev/configure
npx trapeze run config.yaml
API
Pass the main iOS project directory to the MobileProject
constructor, and then the relative path to the iOS project (such as '.'
if the root and iOS project paths are the same):
import { MobileProject, MobileProjectConfig } from '@trapezedev/project';
const config: MobileProjectConfig = {
ios: {
path: '.',
},
};
const project = new MobileProject('/path/to/project/dir', config);
await project.load();