iOS Question Problem with Debug/Release via B4i-Bridge

smasher230

Member
Licensed User
Longtime User
When I attempt to debug using B4i-Bridge on my iPhone, the remote build executes OK, but nothing appears on the iPhone.

Background:
My certificates expired so:
  • I emptied the keys folder, and regenerated the certificate signing file
  • I created new certificates and provisioning files.
  • I reinstalled B4i-Bridge. It installed OK, and shows the Designer on the iPhone.
  • When I attempted to run the debugger, the hosted builder ran OK, but nothing appeared on the iPhone.
  • Same thing happens if I Build Release App and/or Compile Release App.

I have reinstalled B4i-Bridge three times.
I have revoked and recreated the certificates and provision files several times.
I have attached a video showing the Debug dialog box. It executes OK and then disappears. Nothing appears on the iPhone (although B4i-Bridge is running OK).
I have tried using 32bit and 64bit.

This could be something very simple, because I am very much an IOS/iPhone/B4i rookie.

TIA for any help.
 
Last edited:

smasher230

Member
Licensed User
Longtime User
Have you tried delete and install again the app?
Or change the name of the package
Thanks F0raster0. I have deleted the app from the iPhone (if that is what you mean). Didn't make any difference. If I change the package name will I still be able to update it through App Store Connect?
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
Thanks F0raster0. I have deleted the app from the iPhone (if that is what you mean). Didn't make any difference. If I change the package name will I still be able to update it through App Store Connect?
I usually do that in those situations, then write back once I’m able to run the app. It might also help to restart both the PC and iPhone..
 
Last edited:
Upvote 0

smasher230

Member
Licensed User
Longtime User
Check whether the new app is installed and if so, then start it manually.
The App is not installed. I can successfully ping the device. Before the certificates expired, everything worked fine. I haven't installed anything new on the iPhone, but there may have been IOS updates. I will try resetting the iPhone.
 
Last edited:
Upvote 0

smasher230

Member
Licensed User
Longtime User
Still no luck.
  • I reset the iPhone and reinstalled B4i-Bridge.
  • B4i-Bridge executes OK on the iPhone.
  • In the IDE, the "Device IP Address" seems to connect OK.
  • The iPhone shows the Designer screen.
  • "Debug" and "Compile and Run" still work, with the Remote Compiler showing the usual messages.
  • However, when the compiler gets to "Ensure that B4i-Bridge is started (xxx.xxx.xx.xx"), the dialog disappears and nothing appears on the iPhone.
  • The app does not get installed on the iPhone.
I'm not sure what to try next. TIA.
 
Upvote 0

smasher230

Member
Licensed User
Longtime User


I haven't been able to capture the dialog for "Debug" (it disappears after "Make sure the B4i-Bridge is started"), but this is the dialog from choosing "Build Release version". As you can see, nothing appears in the log, and the app doesn't appear on the iPhone.

I also ran a basic app (Hello World"), but with same result.

I've also noticed a message at the bottom of the IDE that says "Trying to connect to device (192.168.68.83). Make sure to start B4i-Bridge". This is despite the fact that the B4i designer preview is shown on the device. Why would it have trouble connecting to B4i-Bridge for the compile, when it connects OK for the Designer?
 
Last edited:
Upvote 0

smasher230

Member
Licensed User
Longtime User
1. If you are able to build and install the B4i-Bridge app then the keys are set correctly.
2. You can use the same link you use to install B4i-Bridge (the one from the QR code) to install other apps. Try it.
Yay! This worked. I installed and ran the app (without errors). I still can't install through B4i-Bridge, but is there any risk in uploading the app to App Store Connect and releasing it?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I still can't install through B4i-Bridge, but is there any risk in uploading the app to App Store Connect and releasing it?
No risk. Make sure to build it in release mode with a store provision profile (the compilation window should say that it is a "store build").
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Try edit the MinVersion to 11 or other values
B4X:
#MinVersion: 11
Sometimes you set to higher version but your iOS version is lower, the app cannot be install.
 
Upvote 0

smasher230

Member
Licensed User
Longtime User
Thanks Aeric. MinVersion is set to 11. The iPhone is running 18.4.1. Different MinVersions don't seem to affect it. I still can't send installations to B4i-Bridge.
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User

"This version fixes several issues related to iOS 18 new requirements and the installation process. This includes the issue where B4i-Bridge fails to install a new app."
 
Upvote 0

smasher230

Member
Licensed User
Longtime User
Thanks f0raster0. I'll just have to wait for my link to arrive. Cheers.
 
Upvote 0