|
|
**WIP**
|
|
|
|
|
|
A word about iOS distribution
|
|
|
=========
|
|
|
|
|
|
For now, Apple allows you to distribute your add in 4 ways:
|
|
|
|
|
|
1. Store deployment
|
|
|
1. Ad Hoc deployment
|
|
|
1. Enterprise deployment
|
|
|
1. Development deployment
|
|
|
|
|
|
We will explain them shortly.
|
|
|
|
|
|
Build your application as an IPA
|
|
|
======
|
|
|
|
|
|
An `.ipa` file is the **iOS App File** that will run on an iOS device. In TotalCross, to generate a `.ipa` you must call `tc.Deploy` and pass the `-iphone` (or `-all`) argument, together with the path to the the certificate + key store.
|
|
|
|
|
|
For instance:
|
|
|
|
|
|
```
|
|
|
java -cp target/required-dependencies/totalcross-sdk.jar tc.Deploy HelloTC.jar -iphone -m ./ios_certs
|
|
|
```
|
|
|
|
|
|
With this, you will create the `HelloTC.ipa`.
|
|
|
|
|
|
Generating key store and certificate
|
|
|
----------
|
|
|
|
|
|
> You need to have `openssl` installed in your computer.
|
|
|
> 1. If you use Mac OS, this should be installed as default
|
|
|
> 2. If you use Linux, we recomend to install your distro binaries
|
|
|
> 3. If you use Windows, you should [install OpenSSL for Windows](http://slproweb.com/products/Win32OpenSSL.html)
|
|
|
> 3. If you use Windows, you may install a `git-bash` (like the one embedded within [SourceTree](https://www.sourcetreeapp.com/)) |
|
|
\ No newline at end of file |