iOS Question App works in debug mode but not Build Release App

tsteward

Well-Known Member
Licensed User
Longtime User
When I compile my app in debug mode it runs just fine.
When I compile using Build Release App it starts but then just closes.
Unless I have lost the plot this used to work.
I have tried un installing from device, clean project and recompile & install but same issue.

Not sure where to go from here
 

tsteward

Well-Known Member
Licensed User
Longtime User
Okay does this give anyone a clue as to why my app won't run in Build Release App mode, please.
"Cannot parse: (null)" to what?

*** mainpage: B4XPage_Appear [mainpage]
*** mainpage: B4XPage_Resize [mainpage]
Cannot parse: (null)
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
LARA 4 -[B4I ObjectToNumber:] + 360
LARA 4 -[b4i_b4xmainpage _b4xpage_appear] + 160
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
LARA 4 +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1300
LARA 4 -[B4I raiseEvent:event:params:] + 416
LARA 4 __33-[B4I raiseUIEvent:event:params:]_block_invoke + 52
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1924
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
LARA 4 main + 120
libdyld.dylib <redacted> + 4
)
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
ok, without code it will only be guessing.

How about the appear and resize methods.
B4X:
Private Sub B4XPage_Appear
    #if B4A
    Sleep(0)
    B4XPages.GetManager.ActionBar.RunMethod("setDisplayHomeAsUpEnabled", Array(True))
    Dim bd As BitmapDrawable
    bd.Initialize(HamburgerIcon)
    B4XPages.GetManager.ActionBar.RunMethod("setHomeAsUpIndicator", Array(bd))
    #End If
    If ASTabMenu1.CurrentIndex = astabPage.Get("Tools") Then
        SetActionBarCustomViewState(True)
    End If
    If pnlShortcut.Visible=True Then
        SetActionBarCustomViewState(False)
    End If
End Sub

Private Sub B4XPage_Disappear
    #if B4A
    B4XPages.GetManager.ActionBar.RunMethod("setHomeAsUpIndicator", Array(0))
    #end if
End Sub

Private Sub B4XPage_Resize (Width As Int, Height As Int)
    'Log($"Resize event ${Width} x ${Height}"$)
    drawer.Resize(Width, Height)
End Sub
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
Yes what I posted in post #3 is what iReleaseLogger shows/logged

Tried commenting out line by line until nothing left in Application_Start but it would never run.
 
Upvote 0

tsteward

Well-Known Member
Licensed User
Longtime User
I want to help you but not like this. Sorry.
I apologise I guess I'm just frustrated.
But I stand by what I said I do find B4I extremely difficult to debug. I often find things work perfectly in B4A but same thing does not work in B4I and I don't mean platform specific things.

My app runs in Debug mode but not Release mode....frustrated. I'm currently going to a month old backup and starting again to try and re-enter many hours of coding to catch up to the b4A version...frustrated

I know I am not a programmer's pimple but I am trying and without great programs like your I could not do what I do.
 
Upvote 0
D

Deleted member 103

Guest
I apologise I guess I'm just frustrated.
But I stand by what I said I do find B4I extremely difficult to debug. I often find things work perfectly in B4A but same thing does not work in B4I and I don't mean platform specific things.

My app runs in Debug mode but not Release mode....frustrated. I'm currently going to a month old backup and starting again to try and re-enter many hours of coding to catch up to the b4A version...frustrated

I know I am not a programmer's pimple but I am trying and without great programs like your I could not do what I do.

I have had such errors a few times.
The only thing that helps is to remove all functions and modules and reinsert them step by step.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Now I'm a bit frustrated...
First, you insulted a creation that I worked on many years.
Second, it is clear that you ignored my previous suggestion. I ran your project, with properly configured iReleaseLogger and immediately saw where the error comes from:

1642330781210.png




1642330858864.png


1642330905832.png


And that is last post in this thread.

Edit: I see that you did get the error from iReleaseLogger. It wasn't clear to me.
 
Last edited:
  • 100%
Reactions: ajk
Upvote 0
Top