iOS Question App Store & B4i-Bridge

b4auser1

Well-Known Member
Licensed User
Longtime User
Can I install app to iphone (real device) using B4i-Bridge without publishing app to App Store ?
 

Scotter

Active Member
Licensed User
Hi - I'm doing B4i development on a windows machine. I purchased an iPhone 4s so that I could use the phone to debug.
I was able to install the certificate to the iPhone. Now I'm stuck. I searched the app store for B4i-bridge and can't find the app.
Is there another way to get that app on the phone? Thanks!
 
Upvote 0

Scotter

Active Member
Licensed User
In B4i application on my Windows machine, I use tools-->Build B4i Bridge App and get this error:
B4i version: 2.51
Parsing code. (0.00s)
Compiling code. (0.04s)
Building designer app. (0.04s)
Building Xcode project (0.03s)
Sending data to remote compiler. Error
mobileprovision file not found.
Please help?
I've purchased a new iPhone that is set up on my WiFi. I couldn't find B4i-Bridge in the app store. Guessing I am creating that app when I use tools-->Build B4i Bridge App but it is telling me it can't find my phone? Feels like a Catch22. In the B4i application on my Windows machine, I have set up tools-->device IP address to machine what address the iPhone is using on my WiFi network. I've installed a certificate on the iPhone, which seemed to go well. What am I missing?
Thanks for any help you all can offer!
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Thanks for your help. Perhaps you didn't see that I said "I've installed a certificate on the iPhone, which seemed to go well."?
" "I've installed a certificate on the iPhone, which seemed to go well" means that you have installed b4x.com/ca.pem to your phone according to my understanding because what is described in the tutorial is creating a certificate file to be able to build your app . That certificate is not a thing that can be installed to your iphone. Did you check the link or you just responded without seeing the tutorial ? If you have created your certificate and provisioning file you must state so we can understand and try to help. If not , you just need to follow the tutuorial.
 
Upvote 0

Scotter

Active Member
Licensed User
Please see image I uploaded.
 

Attachments

  • build-bridge-problem.jpg
    build-bridge-problem.jpg
    182 KB · Views: 291
Upvote 0

Scotter

Active Member
Licensed User
" "I've installed a certificate on the iPhone, which seemed to go well" means that you have installed b4x.com/ca.pem to your phone according to my understanding because what is described in the tutorial is creating a certificate file to be able to build your app . That certificate is not a thing that can be installed to your iphone. Did you check the link or you just responded without seeing the tutorial ? If you have created your certificate and provisioning file you must state so we can understand and try to help. If not , you just need to follow the tutuorial.
Yep. Sorry for not being more clear. I've created a certificate and provisioning file.
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Yep. Sorry for not being more clear. I've created a certificate and provisioning file.
Thank you. The error seems to be the provisioning file. Can you check the folder which you set in tools/confiugre paths .. In that location you have to have a certificate file and provisioing file. If the name of the provisoining file is default.mobileprovision you dont have to do anything special in b4i but it seems that the b4i cant find your provisioning file so either you dont have the provisioning file in the location you set in tools / configure paths or you have a provisioing file named stg different than default.mobileprovision so you have to add
#ProvisionFile: filenhame.mobileprovision
under #Region Project Attributes
with the name of your file. for example:
#ProvisionFile: filenhame.mobileprovision
 
Upvote 0

Scotter

Active Member
Licensed User
Thank you. The error seems to be the provisioning file. Can you check the folder which you set in tools/confiugre paths .. In that location you have to have a certificate file and provisioing file. If the name of the provisoining file is default.mobileprovision you dont have to do anything special in b4i but it seems that the b4i cant find your provisioning file so either you dont have the provisioning file in the location you set in tools / configure paths or you have a provisioing file named stg different than default.mobileprovision so you have to add
#ProvisionFile: filenhame.mobileprovision
under #Region Project Attributes
with the name of your file. for example:
#ProvisionFile: filenhame.mobileprovision
Thank you!!
What extension would the provisioning file have?
In the folder I configured as the "keys folder" I have the following files:
- B4i.keystore
- B4i.p12
- ios_distribution.cer
and of course certSigningRequest.csr which I should probably delete?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
you are missing the provisioning file. its extension is .mobileprovision. In the website of apple developer where you created the certificate you also need to create a provisioning file for development. It seems you have a certificate for distrubiton. But if you want to try your app on your iphone while building it you need to create a certificate for development and a provisoning file for development tied to the certificate file. Go once more with the tutuorial and you will understand better :) . It seems that you need to create a new certificate for development and also create a provisioning file tied to that certificate file.
Thank you!!
What extension would the provisioning file have?
In the folder I configured as the "keys folder" I have the following files:
- B4i.keystore
- B4i.p12
- ios_distribution.cer
and of course certSigningRequest.csr which I should probably delete?
 
Upvote 0

Scotter

Active Member
Licensed User
OK I've generated new key and provision profile and downloaded both to my "keys" folder.
I then run the "Build for bridge" and I get this error:
Code Sign error: Provisioning profile does not match bundle identifier: The provisioning profile specified in your build settings (“Nutshell”) has an AppID of “town.nutshell.url” which does not match your bundle identifier “town.nutshell.url.bridge”.
NOTE: One thing I'm not sure of is where to put my "Team ID" before app id.
Like where do I put as town.nutshell.url and where as RV9X62HFVN.town.nutshell.url?
In build configurations in the B4i application I have "package" set to town.nutshell.url. Does key generation use that field, too?
Oh and in that field if I put ".bridge" at the end of town.nutshell.url, it doesn't help.
Thanks for helping so much!
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
OK I've generated new key and provision profile and downloaded both to my "keys" folder.
I then run the "Build for bridge" and I get this error:
Code Sign error: Provisioning profile does not match bundle identifier: The provisioning profile specified in your build settings (“Nutshell”) has an AppID of “town.nutshell.url” which does not match your bundle identifier “town.nutshell.url.bridge”.
NOTE: One thing I'm not sure of is where to put my "Team ID" before app id.
Like where do I put as town.nutshell.url and where as RV9X62HFVN.town.nutshell.url?
In build configurations in the B4i application I have "package" set to town.nutshell.url. Does key generation use that field, too?
Oh and in that field if I put ".bridge" at the end of town.nutshell.url, it doesn't help.
Thanks for helping so much!
You need to create a wildcard to use to builld the bridge i think ( the bundle identifier ending with * ) Currently you are using town.nutshell.url . if your wildcard id is town.nutshell.url* it is correct, but obviously your wildcard id is not created or it is not town.nutshell.url* .
 
Last edited:
Upvote 0

Scotter

Active Member
Licensed User
You need to create a wildcard to use to builld the bridge i think ( the bundle identifier ending with * ) Currently you are using town.nutshell.url . if your wildcard id is town.nutshell.url* it is correct, but obviously your wildcard id is not created or it is not town.nutshell.url* .
That did it! THANK YOU for your patience and generosity!
 
Upvote 0
Top