|
|
**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
|
|
|
```
|
|
|
|
|
|
... 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/))
|
|
|
|
|
|
**WIP**
|
|
|
|
|
|
iOS deployments
|
|
|
===========
|
|
|
|
|
|
**WIP**
|
|
|
|
|
|
Store deployment
|
|
|
----------
|
|
|
|
|
|
> Artifacts needed for this step:
|
|
|
>
|
|
|
> 1. the TotalCross generated `.ipa` (with the proper provisioning profile)
|
|
|
> 1. your provisioning profile
|
|
|
> 1. your Production certificate
|
|
|
> 1. a Mac OS X computer
|
|
|
|
|
|
To send your application to the App Store, you first need to generate your `.ipa` using the key/provisioning profile of a Store distribution. Then, it is needed to resign your `.ipa` using the **iReSign** (download [iReSign from GitHub](https://github.com/maciekish/iReSign/archive/master.zip), or access the [iReSign project on GitHub](https://github.com/maciekish/iReSign)).
|
|
|
|
|
|
Once you open iReSign, you will be met with this window:
|
|
|
|
|
|
![iresign window](/uploads/f732bf3f6dce47faa840a4bd049dd384/iresign.png)
|
|
|
|
|
|
Just drag and drop your `.ipa` in the first field, select your Production certificate in the last field. After this, it will generate a new `.ipa` file. If you send `HelloWorld.ipa`, it will generate `HelloWorld-resigned.ipa` in the same directory of `HelloWorld.ipa`.
|
|
|
|
|
|
With your `*-resigned.ipa` in hands, you can send it to the App Store using the iTunesConnect program.
|
|
|
|
|
|
**WIP** |
|
|
\ No newline at end of file |