Hi! I'm getting an error when loading the main page of my app (until yesterday all worked), this is my code:
and this is the error on the debugger
the error is on line 51, this:
Page1.RootPanel.LoadLayout("main")
the layout "main" exists of course...
where's the problem?
regards,
ciro
B4X:
Private Sub Application_Start (Nav As NavigationController)
'SetDebugAutoFlushLogs(True) 'Uncomment if program crashes before all logs are printed.
NavControl = Nav
Page1.Initialize("Page1")
Page1.Title = "Page 1"
Page1.RootPanel.Color = Colors.White
Page1.RootPanel.LoadLayout("main")
NavControl.ShowPage(Page1)
......
and this is the error on the debugger
B4X:
Application_Start
Error occurred on line: 51 (Main)
Error opening stream (/private/var/mobile/Containers/Data/Application/D925E20E-7085-4E81-95DA-3350772C031C/tmp/virtual_assets/main.bil): Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={_kCFStreamErrorCodeKey=2, _kCFStreamErrorDomainKey=1}
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Five Stars - School - Genitori 0x0000000100e36bc4 -[B4IFile OpenInput::] + 440
Five Stars - School - Genitori 0x0000000100e49194 -[B4ILayoutBuilder loadLayout:::] + 652
Five Stars - School - Genitori 0x0000000100e47f7c -[B4IPanelWrapper LoadLayout::] + 204
Five Stars - School - Genitori 0x0000000100e0e224 -[b4i_main _application_start:] + 1204
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
Five Stars - School - Genitori 0x0000000100e2807c +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1624
Five Stars - School - Genitori 0x0000000100e89be4 -[B4IShell runMethod:] + 448
Five Stars - School - Genitori 0x0000000100e88968 -[B4IShell raiseEventImpl:method:args::] + 2164
Five Stars - School - Genitori 0x0000000100e8bf50 -[B4IShellBI raiseEvent:event:params:] + 1372
Five Stars - School - Genitori 0x0000000100e27288 __33-[B4I raiseUIEvent:event:params:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1964
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 100
UIKitCore UIApplicationMain + 212
Five Stars - School - Genitori 0x0000000100e0d5f4 main + 124
libdyld.dylib <redacted> + 4
)
the error is on line 51, this:
Page1.RootPanel.LoadLayout("main")
the layout "main" exists of course...
where's the problem?
regards,
ciro