iOS Tutorial Publishing your app to the App Store

Discussion in 'iOS Tutorials' started by Erel, Aug 23, 2015.

  1. Erel

    Erel Administrator Staff Member Licensed User

    This tutorial explains the steps required to create a store ready ipa file.

    1. The first step is to uninstall your app from the device and install it again in Release mode (Tools - Build Server - Build Release App). This is an important test. Similar to the test Apple will run.
    Make sure to also test it with airplane mode on.
    The certificate used at this point should be the same non-store certificate.

    2. Create a distribution certificate and provision file. See this tutorial: http://www.b4x.com/android/forum/th...e-certificates-provision-files.48539/#content
    Use the same certSigningRequest.csr file as before.

    3. Add code similar to this to select the new store certificate when the app is compiled in release mode:
    Code:
    #If RELEASE
       #CertificateFile: ios_distribution.cer
       #ProvisionFile: store.mobileprovision
    #END IF
    4. Compile your app in Release mode (Alt + T + B + R). Don't try to install the app on the device as it is not possible to install store signed apps.

    5. Download the compiled app to the PC: Tools - Build Server - Download last build. This step is required even if you are using a local mac.

    You will see this message:
    [​IMG]

    As written in the message the ipa file is inside Archive.zip. You need to take the ipa file and upload it with Application Loader (on a Mac) or upload it with the hosted builder: https://www.b4x.com/android/forum/threads/b4i-v2-30-beta-has-been-released.59124/#post-372309
    Backup archive.zip. It can be useful for crash reports.


    Apple App Store review guidelines: https://developer.apple.com/app-store/review/guidelines/
     
    Last edited: Feb 17, 2016
  2. ciginfo

    ciginfo Active Member Licensed User

    Hello,
    I have no published application on the apple store for more than six months. I just update an application and have to submit it to the apple store.
    Can I do as before or the process is different now?
    To make an Ipa file I was compiling in release mode with a different certificate than the certificate used to test the app on the device.
    Questions:
    - What means "Make it safe to also test with airplane mode on."
    - I do not understand "The certificate should be the same non-store certificate."
    - Now have I to add this code before compilation in release mode?
    Code:
    #If RELEASE
       #CertificateFile: ios_distribution.cer
       #ProvisionFile: store.mobileprovision  
    #END IF
    Thank you.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    You can change the key folder. It will work as before.

    It is now easier to switch to a different key with these two attributes.

    1. As a tip I recommend you to install your app on the device in release mode and test it when air plane mode is on. Apple will do a similar test.

    2. If you want to run your app on the device in release mode then you should use the development certificate. Not the store certificate.

    3. This is an optional feature that allows you to change the keys used during compilation.
     
  4. ciginfo

    ciginfo Active Member Licensed User

    I imagine that ios-distribution.cer and ios-developpement.cer must be in the same folder, path is given in the IDE with Tools / Configuration Paths / Folders Key.
    Is n't it?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
     
  6. umberto_dev

    umberto_dev Member Licensed User

    Hello Erel,
    I have the B4I package with hosted mac option, so the compiling part is on your Mac.
    I haven't understood wich OS X version I need to publish on Apple Store. I saw an auction on eBay for a 10.8.5 (mountain lion). Is it enough or do I need a more advanced one (10.9 or10.10).
    Thank you very much.
    Umberto
     
  7. Erel

    Erel Administrator Staff Member Licensed User

  8. umberto_dev

    umberto_dev Member Licensed User

    Thank you very much, Erel. Sorry for the question, I didn't thought about yesterday it was Saturday. BTW B4I is really a great product, and it's growing well like B4A.
    Thank you again.
     
    Erel likes this.
  9. gudino jose luis

    gudino jose luis Active Member Licensed User

    Hi.
    what is the process to upload a new version of an application to the app store.

    my steps were made by the following:

    1) changes in the current version
    2) Old version: #Version: 1.0
    3) new verrions #Version: 1.2
    and publish "Upload app to connect to itunes"

    I do something else?

    15 days have passed and still no update.
     
  10. JonPM

    JonPM Well-Known Member Licensed User

    Did you log into iTunes and select the 1.2 build version and submit it?
     
  11. gudino jose luis

    gudino jose luis Active Member Licensed User

    Hi, thanks for your time and prompt response.
    Attached sending this picture.

    As I do for the submit?

    [​IMG]
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Apple didn't review apps during the Christmas holiday. So things are slower.

    I've just made an update for an app of mine yesterday. This is how it should look:

    [​IMG]
     
  13. gudino jose luis

    gudino jose luis Active Member Licensed User

    hi
    if they were on holiday lei 22 to 28 December.

    the problem I see is that it does not appear in the new version of my application "App stores Status" -> "Waiting For Review"

    it is as if missing a step
     
  14. Erel

    Erel Administrator Staff Member Licensed User

    Sounds to me that you need to submit a new build (maybe first cancel this version).
     
  15. gudino jose luis

    gudino jose luis Active Member Licensed User

    Erel thanks for your contribution.

    What are you suggesting?
    what would be the next steps.
    Greetings
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    Either wait a few more days (see the app review times: http://appreviewtimes.com/).

    Or delete this build and upload a new version.
     
  17. kreativa

    kreativa Member Licensed User

    Hi everybody!
    I have a problem with app loader.
    One I created the developer and itunes connect profile on apple site.
    I create new certificate (with .csr created in b4ios), new store app id, new store provision profile, i downloaded them i compile my app in release mode and app loader says:

    ERROR ITMS-90035: "Invalid Signature. A sealed resource is missing or invalid. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library...deSigningGuide/Introduction/Introduction.html"

    Any ideas?
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    Can you post the text you see in the compilation dialog when you compile your app in release mode?
     
  19. kreativa

    kreativa Member Licensed User

    Ok but no errors found

    The only difference between this app and the others that i released is that i need localization permissions and contacts access permissions.

    B4i version: 2.00
    Parsing code. (0.05s)
    Compiling code. (0.11s)
    Compiling layouts code. (0.01s)
    Building Xcode project (0.06s)
    Sending data to remote compiler. (4.13s)
    Completed successfully.
    Make sure that B4i-Bridge is started (192.168.10.6).
    Manually launch the app after installation.
    Note that it is not possible to install apps signed with a store certificate.
    You can download the ipa file with Tools - Build Server - Download Last Build.
     
  20. Erel

    Erel Administrator Staff Member Licensed User

    Were you able to install the app on the device after compilation?
     
Loading...