iOS Question error with b4i-bridge

Yves Rossignol

Member
Licensed User
Tell me if I have to remomve the old b4i and install the new one. To obtain a valid CSR and all thing...

but i have the following error

B4i version: 2.51
Parsing code. (0.00s)
Compiling code. (0.04s)
Building designer app. (0.00s)
Building Xcode project (0.04s)
Sending data to remote compiler. Error
Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/<user id>/Payload
OTHER_CODE_SIGN_FLAGS = --keychain <user id>
PRODUCT_NAME = B4i-Bridge
PROVISIONING_PROFILE = 8e8e5337-0e6e-499a-af26-051460e1908d

=== BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

Check dependencies
Code Sign error: Provisioning profile does not match bundle identifier: The provisioning profile specified in your build settings (“Development”) has an AppID of “--------” which does not match your bundle identifier “anywheresoftware.b4i.example1.bridge”.


Error: ** BUILD FAILED **


The following build commands failed:
Check dependencies
(1 failure)

the ------- replace my app id
 

f0raster0

Well-Known Member
Licensed User
login into your developer.apple account->Certificates, Identifiers & Profiles->Identifiers (left hand)->App IDs

you will see some like com.myapp.* (it was created for you previously, if not you have to do) then in your App mobile configuration you have to write some like: com.myapp.exmaple1 (example1 is what you can change any time without change the App ID)

Edit: image6 is your App ID then in b4i->package should be: M234Elle.example1 (image1)
note: I think debug architecture should be 32bit (image2)
 

Attachments

Last edited:

Yves Rossignol

Member
Licensed User
Seem to work better but i can't connect to the adress for bridge...

B4i version: 2.51
Parsing code. (0.00s)
Compiling code. (0.04s)
Building designer app. (0.01s)
Building Xcode project (0.03s)
Sending data to remote compiler. (3.92s)
Open mobile Safari and navigate to: 208.52.154.96:51041/(my serial number)
Then click on the Install button.
Troubleshooting:
1. Make sure that B4I certificate is installed (www.b4x.com/ca.pem).
2. Make sure that the provisioning file includes the target device UDID.
3. Check the link for typos.
Completed successfully.

at this adress i have a big button to install bridge but when i click on it... answer impossible to connect

but thank for your help, I strongly appreciate
 

Erel

Administrator
Staff member
Licensed User
note: I think debug architecture should be 32bit
This is only required if your device is a 32bit device (iPhone 5c or older).

at this adress i have a big button to install bridge but when i click on it... answer impossible to connect
See the email I've sent you. Also make sure that the B4i profile is installed on the device.
 

gjt211

Member
Licensed User
Hi Erel,

I have same problem as Yves. I am running local mac builder.
When I open the address in iPhone6 browser (192.168.0.90:51041), I see the install app button, but when I click on it, I get a message "Cannot connect to 192.168.0.90"

I have installed the Certificate as advised from www.b4x.com/ca.pem and can see it in my settings ok.
I used my UUID with my apple developer account when creating the specified things.

Can you provide some help please?
 

gjt211

Member
Licensed User
Hi Erel, thank you for your always quick response.
I have tried the temporary User ID, and it works fine.
I re-tried to use my local mac again and it failed with the same message Cannot connect to (IP address).

2016-05-15 17:51:34.975:INFO:eek:ejs.Server:main: Started @7562ms
Build server is ready
https://192.168.0.90:51042
http://192.168.0.90:51041
Build server version: 2.51
Adding user to keychain: gjt211
success: true, 50
17:53:11| Compilation time: 22880, gjt211, queue: 0, success: true


You can see above some output from the terminal from the build server.
Please tell me what information you would like so we can start the "debug" process.

Thank you
 

gjt211

Member
Licensed User
Hi Erel, Sorry for the delay, I have been away with work.

Below is the output of the test page

B4i Build Server
Build server is running.
Version: 2.51
Server time: 13:55:57
Mac SSL Key
Key IP: 172.16.41.1
SSL port: 51042
h files
  • iAd: 1.00
  • iAdMob: 1.30
  • iAnalytics: 1.0
  • iArchiver: 1.01
  • iBarcode: 1.20
  • iBLE: 1.31
  • iContacts: 1.00
  • iCore: 2.52
  • iDebug: 1.60
  • iDebug2: 1.60
  • iDesigner: 1.20
  • iDropboxSync: 1.00
  • iEncryption: 1.02
  • iGoogleMaps: 1.10
  • iHttp: 1.01
  • iHUD: 1.00
  • iJSON: 1.0
  • iLeadbolt: 2.00
  • iLocation: 1.20
  • iMedia: 1.21
  • iMQTT: 1.0
  • iNet: 1.20
  • iNetwork: 1.11
  • iPhone: 1.70
  • iRandomAccessFile: 1.50
  • iReleaseLogger: 1.00
  • iSideMenu: 1.01
  • iSQL: 1.30
  • iStore: 1.0
  • iStringUtils: 1.00
  • iSVG: 1.00
  • iTableView: 1.21
  • iUI8: 1.20
  • iWebSocket: 1.00
  • iXmlBuilder: 1.00
  • iXmlSax: 1.10
a files
  • libCore, size=3,507,040, modified=02/28/2016 07:38:34
  • libiAd, size=36,880, modified=02/22/2016 03:22:22
  • libiAdMob, size=68,176, modified=02/22/2016 03:22:22
  • libiAnalytics, size=39,504, modified=02/08/2016 05:49:24
  • libiArchiver, size=245,120, modified=02/22/2016 03:22:22
  • libiBarcode, size=247,568, modified=01/27/2016 06:12:28
  • libiBLE, size=140,224, modified=02/22/2016 03:22:22
  • libiContacts, size=111,512, modified=02/22/2016 05:07:24
  • libiDebug2, size=1,077,520, modified=02/22/2016 03:22:22
  • libiDesigner, size=846,912, modified=02/22/2016 03:22:24
  • libiDropboxSync, size=80,960, modified=02/22/2016 03:22:24
  • libiEncryption, size=67,752, modified=02/22/2016 03:22:24
  • libiGoogleMaps, size=160,616, modified=02/22/2016 03:22:24
  • libiHttp, size=121,800, modified=02/22/2016 03:22:24
  • libiHUD, size=285,496, modified=02/22/2016 03:22:24
  • libiJSON, size=53,320, modified=02/22/2016 03:22:24
  • libiLeadbolt, size=21,440, modified=02/22/2016 03:22:24
  • libiLocation, size=122,192, modified=02/22/2016 03:22:24
  • libiMedia, size=254,864, modified=02/06/2016 23:05:26
  • libiMQTT, size=1,575,592, modified=02/22/2016 03:22:24
  • libiNet, size=532,392, modified=02/22/2016 03:22:24
  • libiNetwork, size=260,272, modified=02/18/2016 07:53:34
  • libiPhone, size=294,336, modified=02/23/2016 05:06:22
  • libiRandomAccessFile, size=385,184, modified=02/22/2016 03:22:24
  • libiReleaseLogger, size=49,976, modified=02/22/2016 03:22:24
  • libiSideMenu, size=504,704, modified=02/22/2016 03:22:24
  • libiSQL, size=401,008, modified=02/15/2016 02:55:44
  • libiStore, size=51,224, modified=02/22/2016 03:22:24
  • libiStringUtils, size=55,328, modified=02/22/2016 03:22:24
  • libiSVG, size=57,360, modified=02/22/2016 03:22:24
  • libiTableView, size=194,152, modified=02/22/2016 03:22:24
  • libiUI8, size=501,424, modified=02/29/2016 00:36:58
  • libiWebSocket, size=391,936, modified=02/22/2016 03:22:24
  • libiXmlBuilder, size=151,200, modified=02/22/2016 03:22:24
  • libiXmlSax, size=61,888, modified=02/22/2016 03:22:24
 

gjt211

Member
Licensed User
I can access the https link from the device (iPhone), I see the big install button, but when I click on it, it says 'Cannot connect to 192.168.0.90'
 

gjt211

Member
Licensed User
Somehow that is not correct.
I delete the files located in the key folder, and I have already edited the key.txt file with "manual:192.168.0.90" which is the static IP assigned to my Mac.

When I run the BuildServer, I now get a bundle of errors. If I restore the deleted files from the key folder the errors go away.



Last login: Sun May 22 14:59:22 on ttys000
Glendons-Mac-mini:~ gjt211$ cd /Users/gjt211/Documents/B4i/macserver_25/
Glendons-Mac-mini:macserver_25 gjt211$ java -jar B4iBuildServer.jar
Build server version: 2.51
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-05-22 15:06:27.763:INFO::main: Logging initialized @239ms
Loading default configuration file.
AppPath=/Users/gjt211/Documents/B4i/macserver_25
Forcing ip address to: 192.168.0.90
2016-05-22 15:06:27.935:INFO:eek:ejs.Server:main: jetty-9.3.z-SNAPSHOT
2016-05-22 15:06:27.983:INFO:eek:ejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@d041cf{/,file:///Users/gjt211/Documents/B4i/macserver_25/www,AVAILABLE}
2016-05-22 15:06:27.985:INFO:eek:ejs.AbstractNCSARequestLog:main: Opened /Users/gjt211/Documents/B4i/macserver_25/logs/b4j-2016_05_22.request.log
2016-05-22 15:06:28.011:INFO:eek:ejs.ServerConnector:main: Started ServerConnector@4ef629db{HTTP/1.1,[http/1.1]}{0.0.0.0:51041}
main._appstart (java line: 127)
java.lang.IllegalStateException: no valid keystore
at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:48)
at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1020)
at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:336)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:244)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:384)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:182)
at b4j.example.main._appstart(main.java:127)
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:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.main(main.java:29)

main.main (java line: 29)
java.lang.RuntimeException: java.lang.IllegalStateException: no valid keystore
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:114)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.main(main.java:29)
Caused by: java.lang.IllegalStateException: no valid keystore
at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:48)
at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:1020)
at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:336)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:244)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:384)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at anywheresoftware.b4j.object.ServerWrapper.Start(ServerWrapper.java:182)
at b4j.example.main._appstart(main.java:127)
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:93)
... 2 more
 

gjt211

Member
Licensed User
I completely deleted the entire MacServer folder and started again from scratch.
I FIRST created the key.txt file BEFORE I ran the macbuilder. Now it seems to have the correct IP address. Test pasted below.
I will continue further and see how far I get.

Thanks Erel.

B4i Build Server
Build server is running.
Version: 2.51
Server time: 15:34:22
Mac SSL Key
Key IP: 192.168.0.90
SSL port: 51042
h files
  • iAd: 1.00
  • iAdMob: 1.30
  • iAnalytics: 1.0
  • iArchiver: 1.01
  • iBarcode: 1.20
  • iBLE: 1.31
  • iContacts: 1.00
  • iCore: 2.52
  • iDebug: 1.60
  • iDebug2: 1.60
  • iDesigner: 1.20
  • iDropboxSync: 1.00
  • iEncryption: 1.02
  • iGoogleMaps: 1.10
  • iHttp: 1.01
  • iHUD: 1.00
  • iJSON: 1.0
  • iLeadbolt: 2.00
  • iLocation: 1.20
  • iMedia: 1.21
  • iMQTT: 1.0
  • iNet: 1.20
  • iNetwork: 1.11
  • iPhone: 1.70
  • iRandomAccessFile: 1.50
  • iReleaseLogger: 1.00
  • iSideMenu: 1.01
  • iSQL: 1.30
  • iStore: 1.0
  • iStringUtils: 1.00
  • iSVG: 1.00
  • iTableView: 1.21
  • iUI8: 1.20
  • iWebSocket: 1.00
  • iXmlBuilder: 1.00
  • iXmlSax: 1.10
a files
  • libCore, size=3,507,040, modified=02/28/2016 07:38:34
  • libiAd, size=36,880, modified=02/22/2016 03:22:22
  • libiAdMob, size=68,176, modified=02/22/2016 03:22:22
  • libiAnalytics, size=39,504, modified=02/08/2016 05:49:24
  • libiArchiver, size=245,120, modified=02/22/2016 03:22:22
  • libiBarcode, size=247,568, modified=01/27/2016 06:12:28
  • libiBLE, size=140,224, modified=02/22/2016 03:22:22
  • libiContacts, size=111,512, modified=02/22/2016 05:07:24
  • libiDebug2, size=1,077,520, modified=02/22/2016 03:22:22
  • libiDesigner, size=846,912, modified=02/22/2016 03:22:24
  • libiDropboxSync, size=80,960, modified=02/22/2016 03:22:24
  • libiEncryption, size=67,752, modified=02/22/2016 03:22:24
  • libiGoogleMaps, size=160,616, modified=02/22/2016 03:22:24
  • libiHttp, size=121,800, modified=02/22/2016 03:22:24
  • libiHUD, size=285,496, modified=02/22/2016 03:22:24
  • libiJSON, size=53,320, modified=02/22/2016 03:22:24
  • libiLeadbolt, size=21,440, modified=02/22/2016 03:22:24
  • libiLocation, size=122,192, modified=02/22/2016 03:22:24
  • libiMedia, size=254,864, modified=02/06/2016 23:05:26
  • libiMQTT, size=1,575,592, modified=02/22/2016 03:22:24
  • libiNet, size=532,392, modified=02/22/2016 03:22:24
  • libiNetwork, size=260,272, modified=02/18/2016 07:53:34
  • libiPhone, size=294,336, modified=02/23/2016 05:06:22
  • libiRandomAccessFile, size=385,184, modified=02/22/2016 03:22:24
  • libiReleaseLogger, size=49,976, modified=02/22/2016 03:22:24
  • libiSideMenu, size=504,704, modified=02/22/2016 03:22:24
  • libiSQL, size=401,008, modified=02/15/2016 02:55:44
  • libiStore, size=51,224, modified=02/22/2016 03:22:24
  • libiStringUtils, size=55,328, modified=02/22/2016 03:22:24
  • libiSVG, size=57,360, modified=02/22/2016 03:22:24
  • libiTableView, size=194,152, modified=02/22/2016 03:22:24
  • libiUI8, size=501,424, modified=02/29/2016 00:36:58
  • libiWebSocket, size=391,936, modified=02/22/2016 03:22:24
  • libiXmlBuilder, size=151,200, modified=02/22/2016 03:22:24
  • libiXmlSax, size=61,888, modified=02/22/2016 03:22:24
 

Robby

Member
Licensed User
Erel

Can you help with a similar problem.

I have just upgraded to latest B4I and now using 2.51 build server on a Mac. No problems in compiling B4i Bridge and app. I needed to install the B4i Bridge. Problem: when hitting install button on the ipad an error message ‘Cannot connect to IP 192.168.0.6.’

I have checked previous posts on this problem and applied all advice. New certificates, provisioning files etc. however the probelm seems to be with the build server. The Mac ip is 192.168.0.6. The server is using http://192.168.0.6:51041 and https 192.168.0.6:51042 so all OK there. (I'm using manual:192.168.0.6 in Key.txt)

I ran the server test http://192.168.0.6:51041/test from the ipad and got a read out that the server (as above in previous post) is running OK with lists of h and a files so OK there. HOWEVER I noticed that the Mac SSL Key IP shown is 192.168.0.8 rather than 192.168.0.6 and. I understand it should be 192.168.0.6. SSL Port is 51042

I pinged 192.168.0.8 and there is no device using that ip. I ran https://192.168.0.6:51042/test and got error Safari cannot open page because network connect was lost.
 

Robby

Member
Licensed User
Erel

Ignore my pst above ref Server. I reloaded the new version and stated again - all OK
 
Top