iOS Question B4i Bridge not loading

Tek-Mick

Member
Hi Erel,

yes, this is what you already said via mail.

The app is compiled properly. But the BRIDGE
is not loaded. It ends at the same point.
The App can not be loaded on the phone.

Thanks again !
 
Upvote 0

Tek-Mick

Member
I'm using an iPhone 6s plus with 9.1 and I entered the IP of my Apple host with the port given in the compile window.
The page appears and can be refreshed. The age of the app is shown properly and counts up with the time.

Only pressing the bubble icon which should load the app does not work. Later on a message appears with the IP I mentioned above.
 
Upvote 0

Tek-Mick

Member
Yes I used the full URL. And it shows the page.
Yes I see the certificate.
IP: which firewall? on my Apple? May be this is the reason.
How can I switch it off? From where and how did it take
this IP? I never entered it anywhere and I do not know it.

Thanks again ;-)
 
Upvote 0

Tek-Mick

Member
The test with the simulator works fine.
The phone is connected directly to the appe and is logged into iTunes.
Additionaly WLAN is on and the phone can be pinged and the Apple can be pinged.
No I can not build now - I'm not in my office. If I'm back I will start and check again. cu.
 
Upvote 0

Tek-Mick

Member
After switching to hosted build and disconnecting the iPhone from the Mac the Bridge App installed properly.
Thanks, so far so good ;-) (May be you should mention that in your tutorial ?)

Then I tested to compile and use a test app. It worked one time. I deleted everything and started over.
Now the Bridge App is loadable and installable but it does not connect or load any App any longer.
Neither locally nor hosted. There should be no problem about the certificates, because it ran already
once?

Sorry for straining your patience but I want that thing running ... ;-)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
May be you should mention that in your tutorial
The device can be connected to a Mac. It doesn't matter.

It needs to be connected to the internet and to the same network as the PC.

Now the Bridge App is loadable and installable but it does not connect or load any App any longer
What happens when you try to install an app?

Try to switch to 32 bit under Tools - Build Server - Server Settings.
 
Upvote 0

Tek-Mick

Member
Switched to 32 bit now - and the remote server installs my App. Great. Thanks so far ;-)

Will this Bridge App also work if I switch to local server? I have it running, the server
responds with a status screen under http://192.168.178.14:51041/test ... looks good.
"Build release App" is running through - but nothing installs again. Also if I delete the
Bridge, it does not install the BridgeApp again locally. As before. Firewall is off.

What to check next? What do you want to know from me?
May it be possible that

Mac SSL Key
Invalid key!!!

causes this problem? How can I fix this? Thanks again ... :-|
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Will this Bridge App also work if I switch to local server?
Yes.

Note that you can use the hosted builder with the real device and use the local builder with the simulator. The simulator doesn't require any certificate so it is simpler to use.

Check the server logs when you start the server. Is the ip address printed there correct?
 
Upvote 0

Tek-Mick

Member
I get this after starting the server and starting the building of the Bridge:

Mick27:macserver md$ java -jar B4iBuildServer.jar
Build server version: 2.3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2015-11-18 20:05:13.317:INFO::main: Logging initialized @158ms
Loading default configuration file.
AppPath=/Users/md/Downloads/macserver
2015-11-18 20:05:13.408:INFOejs.Server:main: jetty-9.1.z-SNAPSHOT
2015-11-18 20:05:13.424:WARNejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale de_DE
2015-11-18 20:05:13.436:INFOejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@649d209a{/,file:/Users/md/Downloads/macserver/www,AVAILABLE}
2015-11-18 20:05:13.437:INFOejs.AbstractNCSARequestLog:main: Opened /Users/md/Downloads/macserver/logs/b4j-2015_11_18.request.log
2015-11-18 20:05:13.456:INFOejs.ServerConnector:main: Started ServerConnector@7d417077{HTTP/1.1}{0.0.0.0:51041}
2015-11-18 20:05:14.068:INFOejs.ServerConnector:main: Started ServerConnector@491cc5c9{SSL-http/1.1}{0.0.0.0:51042}
2015-11-18 20:05:14.068:INFOejs.Server:main: Started @914ms
Build server is ready
https://10.37.129.2:51042
http://10.37.129.2:51041
Build server version: 2.3
Adding user to keychain: <myaccount>
20:06:11| Compilation time: 1969, <myaccount>, queue: 0, success: true

The I enter this (given) adress in Safari:
10.37.129.2:51041/as
... and Safari does not find this page on my iPhone.

To be a bit more direct now: I used up a lot of time now to try out a lot of combinations and so on, but it does not work reliable and reproducable. I got sometimes a result using the remote service. But this won't work without internet connection, so I do not like that process. And I want to use my iPhone directly and not the simulator.

Is there any recipe which helps debugging all that? There is no real manual for the Mac server, or is it and i missed it? What about usinf the IP of the hosting Mac? I would seriously like to use the tool but up to now I am really disappointed. I also tried B4X a bit ... and it crashed.

So please help ... ! Thanks, Mick.
 
Last edited by a moderator:
Upvote 0

Tek-Mick

Member
Yes, sure. But the Bubble to click on is missing.

I found out something: If I start the Mac Server BEFORE I start my Parallels VM it takes the "normal" IP of my Mac (192.168.178.14) as the server adress and I can download Bridge and App. If I first start my VM and then the server, it takes this strange http://10.37.129.2:51041 IP adress. And then it does not work at all. Neither Bridge nor App.

So finally the problem seems to be solved and I will start developing some Apps now with it. I'm very curious about that. I would suggest to you to spend some time in making the local server environment more transparent to the user - or may be to build a regular App as a server ... ?!

Thanks a lot,
Regards,
Mick
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…