iOS Tutorial Installing B4i-Bridge and debugging first app

Status
Not open for further replies.

klaus

Expert
Licensed User
Longtime User
I don't really understand. It seems you are missing some steps.
Build B4I Bridge
Navigate to the URL that the Compile tells me (63.135.170.51:51041/xxx) on the device
Click install APP on the device.
Does this mean installing Basic4i-Bridge or your program ?
 
Last edited by a moderator:

ciginfo

Well-Known Member
Licensed User
Longtime User
hello,
I suppose that it can only be installed on an Apple device (iPhone or iPad), not Android?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Don't post your user id. Only you should use it. If it will be used by other ip addresses at the same time it will be blocked automatically.

Are both the PC and device connected to the same local network? 10.8.24.123 doesn't look like a local network ip address (though it might be).
 

fbritop

Active Member
Licensed User
Longtime User
Erel,
They are on the same NET, and it is a private network.

I have tried at home, with another local network (192.168.43.215) on the device, again.

When I compile my program I get an error about the Rapid Debugger (screen attached), anyway, after the bridge asks if I want to install my application, I install it, run it and I got the icon and the message saying that is waiting for the IDE to connect.

It seems that the debugger never connects to de iPhone.

What is the debugger error in the screen attached?

Thanks
FBP
 

Attachments

  • screen.png
    133 KB · Views: 664

fbritop

Active Member
Licensed User
Longtime User
Erel
I can ping the device. The bridge works ok, and the visual designer too.

Pretty strange all this. I had never had any issues with b4a.
 

fbritop

Active Member
Licensed User
Longtime User
I just createad an new project. No luck again, same as with the first project.

Just for the doubt. The certificate I created in apple.com was "com.llavemovil.*" and my project package is set to "com.llavemovil.test"

The strange thing, if this was a network issue, it wouldn't be possible to connect to the device with the abstract designer or not?
 

cmartins

Member
Licensed User
Longtime User
almost the same issue with me. When I try to compile I got error?

Parsing code. 0.00
Compiling code. 0.03
Compiling debugger engine code. 0.67
Building Xcode project 0.02
Sending data to remote compiler. Error
Communication error: ConnectFailure

I can use designer. the connection is ok
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
@cmartins please start a new thread for this issue. It is a different issue.

The strange thing, if this was a network issue, it wouldn't be possible to connect to the device with the abstract designer or not?
The designer uses different ports. Maybe your firewall blocks the debugger ports.

The debugger connects to ports 58190 - 58195 on the device. Can you try it with a different device or in a different network (I can send you a user id for the mac builder so you can test it with any computer).
 

fbritop

Active Member
Licensed User
Longtime User
Erel,
Started from scratch, deleted both certificates, b4i, and the development one. Created a new set of certificates on apple.com. download ca.pem at the device.

I also disable the windows firewall. I have build the b4i bridge at the device, but when I compile the project, I get the same error on b4i "Rapid Debugger failed to connect to the device", and on the device, the bridge goes to background and I get a message box that says it is imposible to connect to 63.135.170.51

I do not have another device with me at this time in order to test. I have double checked the udid of the device and it is correct.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is a different error from what you previously described. It is unable to install the app.

The rapid debugger will only be able to connect if the target app is running and showing the message: waiting for connections...

You need to check that:
1. The B4I certificate is listed under Settings - General - Profiles.
2. The mobile provisioning file includes the device UDID.
 

cmartins

Member
Licensed User
Longtime User
I got it. Now I understood... I do not have a Mac, then I need to setup my server builder instead use a local server

thanks Erel
 

fbritop

Active Member
Licensed User
Longtime User
Erel,
Does it requieres a special edition of hardware?. Running iPhone 3,1 with iOS 7.1.2
 

fbritop

Active Member
Licensed User
Longtime User
The connection problem I'm seeing now is when the device tries to download the manifiest he cannot get the URL:

https://63.135.170.51:51042/download?type=manifest__xxxxxxx
where xxxxxxx is the hosted mac key

  1. Status Code:

    500 java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
***EDITED***
I just discover that if the application name has special chars (accents) it wont connect. Having resolved that issue, we are back to the first problem. The application never connects to b4i for debugging
 
Last edited:

davepamn

Active Member
Licensed User
Longtime User
My bridge app will not install from Safari.

The ip address is good, verified with PING on the iPad
The port 51041 opens the webpage.

Why doesn't the bridge app install? Can I download it from the app store?

I later get a popup that says, "Cannot connect to " xx.xx.xxx.xx

ip address
 

tcgoh

Active Member
Licensed User
Longtime User
Hi Erel,

is My iphone ios 7.0 (11A465) giving me this problem?

"Communication error: ConnectFailure"




I have followed all the other steps in this tutorial.

Thanks
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…