iOS Question Apple rejects app --Crash at Launch

omoba

Active Member
Licensed User
Longtime User
Hi,

After upgrading to Ver. 2.31, I updated an app which was already published in appstore --the changes were minor.

After publishing the app, I got this attached log form apple and the app was rejected.

I understand it is a crash log but I dont know what to look at, talkless of how to use it.

Please can you help me understand the problem with app.

I think I duplicated a crash at launch myself after intial install of the app but after that, the app opens and everything works fine.

Thanks
 

Attachments

  • Crash Log.txt
    29.9 KB · Views: 282
Last edited:

omoba

Active Member
Licensed User
Longtime User
Try to reproduce it by uninstalling the app and then install it in release mode.

You can use iReleaseLogger to monitor the logs in release mode.

I tried iReleaseLogger, the Crash at Launch was not duplicated.

I also used adHOC distribution and I didnt get the Crash at Launch.

How can I tell from the crash log what the problem is?
 
Upvote 0

omoba

Active Member
Licensed User
Longtime User
The log by itself doesn't show anything useful. If you have the dsym file then you can try to use the tool to get more information.

Hi,

I made changes to the client's app (given to me modify), all I had to do was to change downloading protocol to FTP protocol.

After the update Apple has rejected the app 3 time saying the app crashes at launch.

I am not able to reproduce the crash, I have tried iReleaseLogger with no luck ---the app does crash.

Pls can someone help out before client start bugging me.

I have attached the app and 1 database file --the db files reside on a server and is called when the app is opened.

Pls any help will be apprecaited.

The entire app is at dropbox link below




Thanks
 
Last edited:
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
Try: Uninstall app, reinstall app, turn on Airplane Mode, start app. Maybe that will cause it to crash.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I ran your program with iReleaseLogger and immediately got this error (the logs are printed in the B4J IDE):

Program started.
My IP Address 192.168.0.6
Waiting on port 54323
DB Error: 1 "no such table: PrayerTime"
DB Query: SELECT Id, FAJR, ZUHR, ASR, MAGHRIB, ISHA, AFAJR, AZUHR, AASR, AMAGHRIB, AISHA FROM PrayerTime WHERE id = ?
DB Path: /var/mobile/Containers/Data/Application/B93667C7-EEDB-4D85-9879-BA6CFE91BD27/Documents/salah2.db
ExecQuery error: no such table: PrayerTime
Stack Trace: (
CoreFoundation <redacted> + 148
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
Ibad-ur-Rahman -[B4ISQL ExecQuery2::] + 260
Ibad-ur-Rahman -[b4i_dbutils _executemap:::] + 276
Ibad-ur-Rahman -[b4i_main _load] + 408
Ibad-ur-Rahman -[b4i_main _timer1_tick] + 1140
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 284
Ibad-ur-Rahman +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1824
Ibad-ur-Rahman -[B4I raiseEvent:eventarams:] + 480
Ibad-ur-Rahman __24-[B4ITimer startTicking]_block_invoke + 332
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 92
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 2556
libdispatch.dylib <redacted> + 808
libdispatch.dylib _dispatch_main_queue_callback_4CF + 492
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1628
CoreFoundation CFRunLoopRunSpecific + 384
GraphicsServices GSEventRunModal + 180
UIKit UIApplicationMain + 204
Ibad-ur-Rahman main + 124
libdyld.dylib <redacted> + 4
)
 
Upvote 0

omoba

Active Member
Licensed User
Longtime User
Thanks,

First of all, Erel, I attached the wrong db file --that has been corrected.

Secondly, I tried JonPM's advice and the app crashes, I am thinking that the issue may be a file not being downloaded.

I will find a fix for when db fails to download
 
Upvote 0

JonPM

Well-Known Member
Licensed User
Longtime User
Apple always tests apps with Airplane Mode, so if your app requires something to be downloaded you'll need a way to tell the user there is no internet connection and app cannot load.
 
Upvote 0

omoba

Active Member
Licensed User
Longtime User
Lastest:

Just in case, I am runniung B4i Version 2.31
I updated my APP to make sure it wouldnt crash if not data or wrong data is received, and APP got rejected again.
The APP was in review for about 10 days but got rejected again --they said APP crashes with iOS 9.2.1 on iphone 5 and ipad Air 2

Pls Erel I have uploaded the proper db and source code to dropbox, Pls can you help do a quick review why I am having issues with the app. The older version in APP store is working fine --the only chnage I have done to the APP is in the download protocol (using FTP now).

Or anybody, can you help me see if this app is crashing? No crashing on my end

https://www.dropbox.com/s/698hy9fehllcqbq/iAPP.rar?dl=0
 
Last edited:
Upvote 0

omoba

Active Member
Licensed User
Longtime User
I got 4 crash logs from Apple. Can it be an issue with device --Apple said htey are testing the app iphone 6S and ipad Air 2 running iOS 9.2.1
 

Attachments

  • temp..tlhasoqh.txt
    30.4 KB · Views: 254
  • temp..uvzhllrk.txt
    30.1 KB · Views: 260
  • temp..vxwdclmf.txt
    30.3 KB · Views: 269
  • temp..yeybefso.txt
    29.9 KB · Views: 253
Last edited:
Upvote 0

omoba

Active Member
Licensed User
Longtime User
Unfortunately I didnt.

Below is a link to the latest archive.zip I created, it should be very similar to the other rejected ones.

I added to the source code --

to check for if the present month is february
if yes the app use a db file in assets folder
else the app downloads the latest db file and use it

https://www.dropbox.com/s/2hcg3s0zsw2bfyl/Archive.zip?dl=0
 
Last edited:
Upvote 0

omoba

Active Member
Licensed User
Longtime User
Finally, app is ready for sale.

I suspect that the last 2 rejections were just because the app wasn't displaying data (due to them testing the app in airplane mode) not because it was crashing.

In this latest update that was accepted, i just forced data to be displayed and they accepted it.

SMH,

Thanks all
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…