iOS Tutorial Installing B4i-Bridge and debugging first app

Status
Not open for further replies.

Massimo Linossi

Member
Licensed User
Longtime User
Yes, I have installed the b4i certificate.
It's really strange. I can see the server, because the connection is working.
 

Attachments

  • IMG_0194.PNG
    284.9 KB · Views: 441
  • IMG_0193.PNG
    162.6 KB · Views: 395

Massimo Linossi

Member
Licensed User
Longtime User
I made as you wrote. The strange problem is that it creates again the keys.txt, but with an IP that is not in my network and
not reachable from the IDE neither the Iphone.
So I changed it manually but the result is always the same. The server makes the bridge and if I call the page test the SSL key
is invalid.
 

Attachments

  • Schermata 2014-12-17 alle 16.54.27.png
    96.6 KB · Views: 337

madru

Active Member
Licensed User
Longtime User
hi, I have the same problem as a few other people in this thread......

the iOS device will not install the B4i-Bridge, pressing the button will show a pop up "Cannot connect to 192.168.1.100".
Using Safari on a MAC will show "itms-services://?action=download-manifest&url=https://192.168.1.100:51042/download?type=manifest_b4i_default".
Executing the HTPS URL will end up with the following error message: "
Problem accessing /download. Reason:
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1"

Installing the bridge.ipa via itunes will have some little success, the visual designer can connect to the device but attaching the debugger is not possible.

THX

M
 

madru

Active Member
Licensed User
Longtime User
mmh, good point......

the Key Ip listed on the test page is wrong it shows the last of the virtual interfaces. The key key file has the correct value and the server startup shows the correct address:
Build server is ready
https://192.168.1.100:51042
http://192.168.1.100:51041
Adding user to keychain: b4i_default
12:06:38| Compilation time: 1788, b4i_default, queue: 0, success: true

but lsof shows * instead of the correct IP
java 23321 guido 22u IPv6 0x6f4ec668e60341cd 0t0 TCP *:51041 (LISTEN)
java 23321 guido 48u IPv6 0x6f4ec668f8b5770d 0t0 TCP *:51042 (LISTEN)
 

madru

Active Member
Licensed User
Longtime User
2014-12-30 15:00:07.336:INFOejs.Server:main: jetty-9.1.z-SNAPSHOT

2014-12-30 15:00:07.355:WARNejh.MimeTypes:main: java.util.MissingResourceException: Can't find bundle for base name org/eclipse/jetty/http/encoding, locale en_US

2014-12-30 15:00:07.374:INFOejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@268f9f78{/,file:/Users/Downloads/macserver-aa-2/www,AVAILABLE}

2014-12-30 15:00:07.376:INFOejs.AbstractNCSARequestLog:main: Opened /Users/Downloads/macserver-aa-2/logs/b4j-2014_12_30.request.log

2014-12-30 15:00:07.391:INFOejs.ServerConnector:main: Started ServerConnector@3f2a225b{HTTP/1.1}{0.0.0.0:51041}

2014-12-30 15:00:08.706:INFOejs.ServerConnector:main: Started ServerConnector@7707d6ae{SSL-http/1.1}{0.0.0.0:51042}

2014-12-30 15:00:08.706:INFOejs.Server:main: Started @1599ms

Build server is ready

https://192.168.1.100:51042

http://192.168.1.100:51041
 
Last edited:

madru

Active Member
Licensed User
Longtime User
i tried a 2nd mac with success. That MAC has only one physical and no virtual IP interface , it is somehow related to multiple interfaces on the main dev. machine
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…