Titanium SDK add support for building Titanium native modules via the CLI a while ago. It is suspected that Studio is still calling ant for Android modules and python build.py for iOS modules. These need to be updated to use the CLI.
To build Android modules, simply run:
For iOS modules, run:
Things to note:
- There should be no notable difference between using the Appc CLI vs Titanium CLI, but I could be wrong. Please advise.
- The --project-dir must be to the module's platform-specific directory.
- --build-only is only supported by iOS module build. Android support is coming in Titanium SDK 5.3.0 (
- The build.py has been officially deprecated as of Titanium SDK 5.2.1 and will be removed from new module projects in Titanium SDK 6.0.0, possibly 5.3.0 or 5.4.0.
- Refer to
TIDOC-2470for more details.