How do you plan to run B4i-program, when iPhone has no access to network ?
I see two alternative solutions.
1. Compile in a release mode (airplane mode is off). Use B4i-Bridge and install an application. Turn airplane mode on and start an app.
Write your log into a file inside File.DirDocuments. You can show results when a program will run next time. Or simply use Msgbox.
2. When I fixed similar prolem, I compiled in a release mode and ran from XCode instead of B4i-Bridge. To output log, I added NSLog.
Enough simple, but not very comfortable way and can be used for local builder only.