0.0.2 • Published 7 years ago

nodexcodebuild v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

NodeXCodeBuild

This package provides a programmatic interface to xcodebuild developed by Apple.

Installation

npm install nodexcodebuild --save-dev

Usage

Build workspace

optiontyperequireddefaultpossible values
sdkstringyes-see "xcodebuild -showsdks"
projectRootstringyes-the path where your project root is
configurationstringnoReleaseRelease, Debug
podInstallbooleannotruetrue, false
codeSignIdentitystringno-The name of your code-sign-identity
developmentTeamstringno-The id of your development team
configurationBuildDirstringno-the path where the compiled app should be stored
workspacestringyes-the name of the workspace to build
schemestringyes-the name of the scheme to build
destinationstringno-the destination device
destinationTimeoutnumberno-timeout when searching a devices
var resolve = require('path').resolve;
var xcb = require('nodexcodebuild');

new xcb.WorkspaceBuild({
  sdk: 'iphoneos10.2',
  projectRoot: resolve('my/path'),
  workspace: 'MyCoolWorkspace.xcworkspace',
  scheme: 'MyAppScheme',
  codeSignIdentity: 'iPhone Developer',
  developmentTeam: 'A1B2C3D4',
  configurationBuildDir: resolve('build/ios'),
}).run();

Build project (not implemented yet)

var resolve = require('path').resolve;
var xcb = require('nodexcodebuild');
new xcb.ProjectBuild({/* @todo implement this */}).run();

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT