iOS Question Problem after up to v.1.5

mrossen

Active Member
Licensed User
Hi,

After update I got a problem. I have 2 app's with sidemenu. One Works perfect after update, another not.

B4X:
Private Sub Application_Start (Nav As NavigationController)
    'create a new navigation controller   
    Dim nc As NavigationController
    nc.Initialize("nc")
    NavControl = nc
   
    Page1.Initialize("Page1")
    Page1.RootPanel.LoadLayout("main")

The line 39 contains : Page1.RootPanel.LoadLayout("main")

If I rem this out it crashes in the next loadlayout line

Log:

Error occurred on line: 39 (main)
Error opening stream: The operation couldn’t be completed. No such file or directory
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 0
Diagnostics -[B4IFile OpenInput::] + 524
Diagnostics -[B4ILayoutBuilder loadLayout:::] + 616
Diagnostics -[B4IPanelWrapper LoadLayout::] + 148
Diagnostics -[b4i_main _application_start:] + 690
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 300
Diagnostics +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1928
Diagnostics -[B4IShell runMethod:] + 496
Diagnostics -[B4IShell raiseEventImpl:method:args::] + 2060
Diagnostics -[B4IShellBI raiseEvent:event:params:] + 1316
Diagnostics __33-[B4I raiseUIEvent:event:params:]_block_invoke + 74
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib _dispatch_main_queue_callback_4CF + 718
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1512
CoreFoundation CFRunLoopRunSpecific + 476
CoreFoundation CFRunLoopRunInMode + 106
GraphicsServices GSEventRunModal + 136
UIKit UIApplicationMain + 1440
Diagnostics main + 116
libdyld.dylib <redacted> + 2
)

Mogens
 

Filippo

Expert
Licensed User
Page1.RootPanel.LoadLayout("main")
You should not use the name "main", used for a different name, for example, "mymain".
The problem was already known at version 1.21.
 

stevel05

Expert
Licensed User
Are the files still visible in the files Tab?
 

mrossen

Active Member
Licensed User
Yes,

I have tried remove and add Again. And sync

I have another project with the same layout without problem ?

Mogens
 

stevel05

Expert
Licensed User
I don't have an app using the side menu to try out, my apps (without it) don't have a problem.
 
Top