iOS Tutorial Creating a certificate and provisioning profile

Discussion in 'iOS Tutorials' started by Erel, Oct 21, 2014.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Don't panic!
    While this process can be a bit annoying it is not too complicated and you can always delete the keys and start from scratch (which is not always the case in Android).

    Note that you must first register with Apple as an iOS developer (costs $99 per year).
    The whole process is done on a Windows computer.

    In order to install an app on an iOS device you need to create a certificate and a provisioning profile.

    The certificate is used to sign the application. The provisioning profile, which is tied to a specific certificate, includes a list of devices that this app can be installed on.



    Steps required:

    IDE
    • Tools - Configure Paths
    • Tools - Build Server - Server Settings
    • Tools - Private Sign Key - fill password and click on Create New Key
    UDID
    • Find the device udid by browsing to udid.io from the device browser.
    Apple developer account - developer.apple.com
    • Devices - Add device
    • App Id - Create wildcard app id with the following id: *
    • Certificate - Create distribution certificate (ad hoc + store)
    • Provision Profile - Create distribution profile (ad hoc)

    Next tutorial: https://www.b4x.com/android/forum/threads/installing-b4i-bridge-and-debugging-first-app.45871/
     
    Last edited: Jan 11, 2018
    IamTrying, luke2012, Pintinho and 5 others like this.
  2. mrjaw

    mrjaw Active Member Licensed User

    For testing mode I must use the account developer ? I mean the registred account ?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
     
  4. ciginfo

    ciginfo Active Member Licensed User

    Unable to enter the section "Certificates, identifiers and Profiles".
    I do not get that page. Why?
    upload_2014-11-17_10-38-47.png

    upload_2014-11-17_9-54-8.png
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    You need to first join the iOS developer program (it costs $99 per year).
     
  6. miker2069

    miker2069 Active Member Licensed User

    I believe I've followed the instructions properly and I *think* it's work
    ing however when I got to compile and run the default test app, I see this at the bottom:

    Parsing code. 0.02
    Compiling code. 0.04
    Compiling debugger engine code. 0.96
    Building Xcode project 0.05
    Sending data to remote compiler. 1.94
    Compilation completed successfully.
    Make sure that B4i-Bridge is started (10.1.16.108).
    Manually launch the app after installation.


    Where exactly do I launch the app after installation? I don't see it on my device. Do I need to manually copy it over to my device via itunes or something?


    Update...

    I realized I didn't read all the tutorial threads...I selected Build B4Bridge and I see the instructions on installting the app...I will go to the other thread for further questions
     
    Last edited: Nov 18, 2014
  7. ciginfo

    ciginfo Active Member Licensed User

    Having no app id, it offers me to create one.
    Should I create an app id for each app future?
    How to create an app id just to test my future apps?
    Ap_id01.png Ap_id02.png
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    You need to create a single wildcard app id. Just make sure that it ends with .*.
     
  9. sorex

    sorex Expert Licensed User

    can I prepare everything without having that device id? I currently don't have a device yet.
     
  10. John Woodsmall

    John Woodsmall Active Member Licensed User

    Ok, I have everything working for my own iphone. Now I want to pass it on to someone else.
    I have their UDID in my hand.
    What do I do to add them to the "whatever" it is list?
    and then after I have them some how covered...how do they
    get the program?
    can I sent it to them or do they somehow have to log on to itunes
    or
    What????

    thanks
    John
     
  11. Erel

    Erel Administrator Staff Member Licensed User

  12. sorex

    sorex Expert Licensed User

    @Erel :

    2. Create a key by choosing Tools - Private Sign Key

    I did this 2 days ago, when I check it again all settings are back to Unknown exept the password.

    Is this app depending and what if I overwrite an old key with new settings like a new company name,
    what will happen if I need to recompile an old app?

    will it cause issues on the app store?
     
  13. Erel

    Erel Administrator Staff Member Licensed User

    The dialog doesn't show you the current values of these fields. These fields are not important. You should create the keystore once and never need to touch it again.

    You can always delete all files, revoke the certificates and start the process again. It will not cause any problem.
     
  14. RichardHirst

    RichardHirst Member Licensed User

    Hello.

    Trying to create a Certificate but the 'Generate' button is not active..?

    Any idea..?

    Richard
     

    Attached Files:

  15. Erel

    Erel Administrator Staff Member Licensed User

    You already uploaded csr file, right?

    Maybe try it from a different browser.
     
  16. RichardHirst

    RichardHirst Member Licensed User

    Hi Erel

    I had already uploaded a csr file, but deleted all and started a fresh due to errors..

    Installed chrome, all working now...So the fun begins.

    Thanks

    Richard
     
  17. fbritop

    fbritop Active Member Licensed User

    Erel,
    What happens if I have an APP in production within the App Store, and I delete the certificates, provision files, etc. Does the app on the App Store wont be able to run? or are they independent.

    Thanks
    FBP
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    Unlike in Android, you can use a different certificate each time when you submit your app to the store.
     
  19. macerau

    macerau Member Licensed User

    Erel
    This file (mobileprovision file not found.) is only created by APPLE?

    I just want to install the application on my iphone, and not create a developer account with Apple.

    It is to take a bypass in this file?
     
  20. Erel

    Erel Administrator Staff Member Licensed User

    You cannot install your app on any device without an Apple developer account.
     
Loading...