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?

 
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 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:









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:
Reactions: ajk
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…