Cogwheel is part of the Family Ecosystem →
Skip to main content

Native iOS

Cogwheel 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 @cogwheel-dev/configure
npx cogwheel 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 '@cogwheel-dev/project';

const config: MobileProjectConfig = {
ios: {
path: '.',
},
};

const project = new MobileProject('/path/to/project/dir', config);
await project.load();