iOS Question Error downloading B4i-Bridge

Sorin Pohontu

Member
Licensed User
Longtime User
Hello,

I'm trying to compile B4i-Bridge, everything is ok until trying to downloading to iPhone.
Here it the error from B4iBuildServer console:

B4X:
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:137)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:95)
    at anywheresoftware.b4j.object.JServlet$Handle.run(JServlet.java:130)
    at anywheresoftware.b4j.object.JServlet.Handle(JServlet.java:110)
    at anywheresoftware.b4j.object.JServlet.doGet(JServlet.java:84)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)
....
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1967)
    at b4j.example.download._handle(download.java:50)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:108)

Mac version: 10.16
Xcode version: 12.5
Build server version: 7.50
B4i 7.50

Any hints ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Strange error.

Have you enabled Apple Configurator 2? It is a must now when using the local builder.
 
Upvote 0

Sorin Pohontu

Member
Licensed User
Longtime User
Hi Erel,

Have you enabled Apple Configurator 2? It is a must now when using the local builder.

No, I was using the same setup before and it worked. I had to switch working app and needed to reinstall B4I Bridge.

Additional question: if using Apple Configurator 2 and not using B4I Bridge how can I see debug info and logs from app ?
 
Upvote 0

Sorin Pohontu

Member
Licensed User
Longtime User
I did. Seems that I can't install B4i Bridge (build is successful, but doesn't install on iPhone).
Anyway, the app seems to install and the IDE debugger is connecting to it, without B4I Bridge.

Thanks for now :)
 
Upvote 0
Top