iOS Tutorial Installing B4i-Bridge and debugging first app

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

Thread Status:
Not open for further replies.
  1. ilan

    ilan Expert Licensed User

    my iphone 5s is running version: 10.3.3 (14G57)

    and when i checked the Certificate Trust Setting, B4i was also turned off so i turned it on and its working now but only Hosted builder! the local builder still doesnot work!

    ps: my hosted builder will expire soon so it would be very nice if we could get an update for the local builder :)

    btw the hosted builder ip is: 63.135.170.51
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. ilan

    ilan Expert Licensed User

    this is what i get when i start the builder:

    the ip that i use is: 192.168.14.106
     
    Last edited by a moderator: Jul 12, 2017
  4. Erel

    Erel Administrator Staff Member Licensed User

    It looks like it compiled successfully. Which error did you get?
     
  5. ilan

    ilan Expert Licensed User

    The compiling is ok the iphone just show a msgbox "cannot connect to <ipadress>" when you click on the big circle (install button)
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Can you install other apps (not B4i-Bridge)?
     
  7. ilan

    ilan Expert Licensed User

    Sorry i dont understand your question.

    I can install the bridge via hosted builder and then install apps from b4i (debug and release) but with local builder i get an error msg that i cannot connect to ip...

    Even if i install the bridge via hosted builder and then try to connect to the local builder i get the same error.

    Can you maybe put a download link to the hosted builder with ip: 63.135.170.51

    Maybe its a different jar file that was sent via b4i v4.01 mail??

    I need to mention that i had the same error with the hosted builder but when i enabled b4i certificate in settings the hosted builder start working but not the local. And i also can run debug with simulator so the local builder is building the project and i can connect to it and run on simulator but with my iphone i get "cannot connect to ip"
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    The problem is not in the builder program.

    This is expected.

    Try to delete the keys folder in the Mac, change the user name under Tools - Build Server (to any value you like) , restart the Mac builder and test it again.
     
  9. ilan

    ilan Expert Licensed User

    Ok i will try it when i get to my pc and let you know. Thank you
     
  10. ilan

    ilan Expert Licensed User

    done!

    done!

    done!

    IMG_0831[4931].PNG

    @Erel, i really think there is a problem with the .jar file. everything worked in the previous version.
    i also am able to build the project and run it on the simulator (with the local builder) and if i use the hosted builder i can run my project on my iphone
    i only cannot connect my iphone with the local builder!!

    btw i am not the only one with this issue, @JanPRO has the same issue and others here too. and it started with version 4.01.
     
    Last edited: Jul 12, 2017
  11. ilan

    ilan Expert Licensed User

    ok, ok, ok , ok..... i found the reason!!!!

    b4i doesnot like if the date and time on the iphone is not correct!!!

    i am not using my iphone a lot and the date was june 2017 and not july. setting the right date/time (go to setting - date & time - Set Automatically) fixed the issue!

    so if someone has the same issue check the date & time on your iphone! i have no idea why the bridge is date/time sensitive but setting the right date/time fixed the issue!! thanks a lot for your help @Erel :)
     
    JanPRO, Erel and Mark Turney like this.
  12. Erel

    Erel Administrator Staff Member Licensed User

    It probably broke the SSL handshake.
     
  13. JanPRO

    JanPRO Well-Known Member Licensed User

    I have forgotten to do this new step :rolleyes::
    Works fine now.

    Jan
     
  14. hongbii khaw

    hongbii khaw Member Licensed User

    Hi all,
    i got this error message:
    Anything I did wrong?
    Thank you.
     
  15. Erel

    Erel Administrator Staff Member Licensed User

  16. b4xscripter

    b4xscripter Member Licensed User

    Hi,
    first of all, many thanks for your support!
    I have the issue related to the hosted Mac Builder. I select Build B4i-Bridge App:

    upload_2017-10-1_16-8-44.png

    That was compiled successfully:

    upload_2017-10-1_16-11-19.png

    Now, I put the url on Safari with my user: 208.52.154.96:51041/XXXXXX

    I get this message:

    upload_2017-10-1_16-12-53.png

    And when I click o Install App, I always get "can't connect to 208.52.154.96":

    upload_2017-10-1_16-14-27.png


    I have B4X certificate installed on my Ipad, as required.

    Could someone please explain what is the problem and how to sort it out?

    Thanks in advance!
     

    Attached Files:

  17. Erel

    Erel Administrator Staff Member Licensed User

    Have you trusted the B4I certificate (see first post)?
     
  18. b4xscripter

    b4xscripter Member Licensed User

    Hi, Erel!
    Thank you! It is true... I needed to enable the certificate. But now, when I try to open the installed app, I get this error:

    upload_2017-10-2_21-0-59.png


    The translation from spanish is something like "You need to update B4i Example, the developer must update this app to be compatible with this iOS version.
    I have the version iOS 11.0.1

    Best regards
     
  19. b4xscripter

    b4xscripter Member Licensed User

    Ok, just resolved! I needed to select "64 bits Debug Architecture":

    upload_2017-10-2_21-47-41.png


    Thanks!
     
    Erel likes this.
  20. stingrae

    stingrae Member Licensed User

    I've gone through the instructional at least 10 times, with 3 or 4 different apps but cannot get past this bit:

    "Build B4i-Bridge: Tools -> Build Server -> Build B4i-Bridge". I get this error below.

    I've got my Android app working well, and now want to replicate in iOS but can't get a "hello world" app to compile :-(

    Please help

    upload_2017-10-7_15-24-13.png
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice