iOS Question issues with b4i

ilan

Expert
Licensed User
Longtime User
i have big issues with b4i lately.

an app that should take 2-3 days takes me more than 3 weeks.
sometimes the app runs well and sometimes it doesn't.

sometimes i get an error that a file does not exist even if it does and sometimes i get other weird errors that doesn't tell me much. this is really frustrating.

i have upgraded to b4i 4.8 beta hoping the problem will be solved but no luck

i don't know what is the problem now i am getting that msg:

Copying updated assets files (85)
:(null),0
Error opening stream: Error Domain=NSPOSIXErrorDomain Code=17 "File exists" UserInfo={_kCFStreamErrorCodeKey=17, _kCFStreamErrorDomainKey=1}
Stack Trace: (
CoreFoundation __exceptionPreprocess + 171
libobjc.A.dylib objc_exception_throw + 48
CoreFoundation +[NSException raise:format:] + 197
result -[B4IFile OpenOutput:::] + 481
result -[B4IShell virtualAssets] + 1303
result -[B4IShell start:] + 164
result -[B4IShellBI raiseEvent:event:params:] + 203
result __33-[B4I raiseUIEvent:event:params:]_block_invoke + 50
libdispatch.dylib _dispatch_call_block_and_release + 12
libdispatch.dylib _dispatch_client_callout + 8
libdispatch.dylib _dispatch_main_queue_callback_4CF + 1260
CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
CoreFoundation __CFRunLoopRun + 2402
CoreFoundation CFRunLoopRunSpecific + 409
GraphicsServices GSEventRunModal + 62
UIKit UIApplicationMain + 159
result main + 111
libdyld.dylib start + 1
)
SignalHandler 6

i tried to clean the mac builder folder and rebuild again but no luck.

i remember that in the past the errors gave a clue about the issue but lately it's hard or almost not understandable in what line the error happens or what is the problem.
 
Last edited:
D

Deleted member 103

Guest
In such cases helps only the one, uninstall App and then compile again.
I often have something like that. :(
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This specific error is related to the virtual assets file feature. For some reason the state of the stored files became corrupted. The solution is indeed to uninstall the existing app, clean the project (ctrl + p) and run again.

Check the files folder. Are there many large files? Does it happen on the simulator or a real device?
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
This specific error is related to the virtual assets file feature. For some reason the state of the stored files became corrupted. The solution is indeed to uninstall the existing app, clean the project (ctrl + p) and run again.

Check the files folder. Are there many large files? Does it happen on the simulator or a real device?

Hi erel, there are no big file in the assests folder and it happens on both simulator and real device. Uninstall the app does solve the problem it just happen often latley.

If i update file in the assets folder it happens.

The problem is if i want to test my app and i add data on the fly after i get this error and need to uninstall the app i have to add again all data and that slow down the coding process. But i still love b4i :D
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
How many files are stored under the Files folder? Click on Files tab -> Sync. Make sure that all files are listed.

ok, i am now on my pc and i can give more info about my project.
i have 93 files in the assets folder, the largest file is 196kb.

do you need any other info from me erel?
 
Last edited:
Upvote 0
Top