iOS Question How to symbolicating a crash report without Mac

shirlun

Active Member
Licensed User
Longtime User
Hi,

I have a App work fine in iPhone 6, yesterday I upload to store for review, the message say it crashed. How can I read the crash report to address the crash line without a Mac ?

Please help. Thanks.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

shirlun

Active Member
Licensed User
Longtime User
Finally I use a Mac and found the error line, but a bit strange

xcrun atos -o iclient arm64 -l 0x104dbc000 -f iclientlog001.txt
main (in iclient) (main.m:16)

In "main.m" line 16 I found the following code but no idea why it crash in iOS 13 (the apple's reviewer uses this version, my iPhone is iOS 12 not crash)

16 @implementation ResumableSub_main_hConnect_Click {
17 b4i_main* parent;
18 int _testpos;
19 BOOL _ret;
20 }
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
It's a bit hard (for me anyway) to tell what the cause would be from what you've posted. I'd suggest you do some Googling about changes in iOS 13 & see if any of those are relevant to the functionality of your app (I can't tell what the app is trying to do from the small amount of code you posted). I have found that there are some breaking changes in iOS 13 that affected a few of the Swift apps I wrote - so if you have access to an iOS 13 device or simulator, I'd recommend you test your app on it.

- Colin.
 
Upvote 0

shirlun

Active Member
Licensed User
Longtime User
Thank you for suggestions.

I upload the App to appetize.io, it crashes in iOS 13 on startup but work fine in other versions of iOS.

After change the hConnect_Click to ordinary Sub and submit to Apple for review again, the error location now is another Resumable Sub:

B4X:
Sub icAdvise(para As String)
 Msgbox2("icAdvise", para, gAppTitle, Array(icSub.icMsg("Ok")))
 Wait For "icAdvise_Click" (c As String)

End Sub

I guess the crashes are caused by resumable subs. Currently I have no iOS 13 for further testing, have other developer encountered this problem?
 
Upvote 0

shirlun

Active Member
Licensed User
Longtime User
Opp, I am looking at the wrong place. But that is so strange why it crashes at the entry point ?

Due to no iOS 13 device for testing, any suggestion ? Thanks.
 
Upvote 0

shirlun

Active Member
Licensed User
Longtime User
Yes. I just found the problem was caused by "SetStatusBarHidden", may this function not suitable for iOS 13 ?
 
Upvote 0

shirlun

Active Member
Licensed User
Longtime User
I am using the code you mentioned.

The App is passed review with that code removed, Thank you.
 
Upvote 0

shirlun

Active Member
Licensed User
Longtime User
In iOS 13, the following code may cause crash.also

B4X:
Dim co As Int = Colors.Black
Dim no As NativeObject = App
no.GetField("statusBar").SetField("backgroundColor", no.ColorToUIColor(co))
 
Upvote 0
Top