2.1 - Apps that crash will be rejected - ios

I made a PhoneGap/cordova app with Sencha Touch. When I build it in newest stable XCode and using the Developer key/prov. profile, I can deploy it to my iPhone and browse the interface. But when I then submit it to apple using the deployment key, I get:
We were unable to review your app, as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue.
and the log contains like:
Last Exception Backtrace:
(0x1831e42d8 0x1949040e4 0x1831e3f5c 0x18401d480 0x18310f520 0x1880447a0 0x1880465a8 0x187eb1ec4 0x187eb10e0 0x187eaf778 0x18b8c53c8 0x18319c27c 0x18319b384 0x1831999a8 0x1830c52d4 0x187c9043c 0x187c8afac 0x10007afec 0x194f82a08)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000019509b270 0x195080000 + 111216
1 libsystem_pthread.dylib 0x000000019513916c 0x195134000 + 20844
2 libsystem_c.dylib 0x0000000195012b14 0x194fb0000 + 404244
3 libc++abi.dylib 0x00000001940d1414 0x1940d0000 + 5140
4 libc++abi.dylib 0x00000001940f0b88 0x1940d0000 + 134024
5 libobjc.A.dylib 0x00000001949043bc 0x1948fc000 + 33724
6 libc++abi.dylib 0x00000001940edbb0 0x1940d0000 + 121776
7 libc++abi.dylib 0x00000001940ed738 0x1940d0000 + 120632
8 libobjc.A.dylib 0x0000000194904290 0x1948fc000 + 33424
9 CoreFoundation 0x00000001830c5380 0x1830bc000 + 37760
10 UIKit 0x0000000187c90438 0x187c14000 + 508984
11 UIKit 0x0000000187c8afa8 0x187c14000 + 487336
12 lightController 0x000000010007afe8 0x100074000 + 28648
13 libdyld.dylib 0x0000000194f82a04 0x194f80000 + 10756
with (12) being my app. I am not sure how this log may help. How can I get to the root of the problem? (As I said, deploying to my iPhone works!)

Related

iOS React Native app runs perfectly in testing but crashes in release build

I wrote a simple app with React Native targeting iOS. When I build the app in Xcode to test on simulators or my iPhone everything works perfectly. When I archive the build in Xcode and load it on my iPhone using the development option, it crashes when I press the only button on screen on start.
The app source code can be found on GitHub.
I am using React Native ~0.63.4 and React: 16.13.1 in a bare Expo workflow.
Third party dependencies:
#react-native-async-storage/async-storage
expo-constants
expo-notifications
uuid
react-native-date-picker
Here is a full crash report from the device logs: Google Drive
I'm at a loss trying to interpret the crash logs but the thread that crashes is exactly this everytime (except for the thread number):
Thread 3 name: Dispatch queue: com.facebook.react.ExceptionsManagerQueue
Thread 3 Crashed:
0 libsystem_kernel.dylib 0x00000001d285f414 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001eed77b40 pthread_kill + 272
2 libsystem_c.dylib 0x00000001aec84b74 abort + 104
3 libc++abi.dylib 0x00000001b9fbccf8 __cxxabiv1::__aligned_malloc_with_fallback+ 81144 (unsigned long) + 0
4 libc++abi.dylib 0x00000001b9fade4c demangling_unexpected_handler+ 20044 () + 0
5 libobjc.A.dylib 0x00000001b9eb6f64 _objc_terminate+ 28516 () + 144
6 libc++abi.dylib 0x00000001b9fbc0e0 std::__terminate(void (*)+ 78048 ()) + 20
7 libc++abi.dylib 0x00000001b9fbc06c std::terminate+ 77932 () + 44
8 libdispatch.dylib 0x00000001a5554dc4 _dispatch_client_callout + 40
9 libdispatch.dylib 0x00000001a555c10c _dispatch_lane_serial_drain + 580
10 libdispatch.dylib 0x00000001a555cc5c _dispatch_lane_invoke + 408
11 libdispatch.dylib 0x00000001a5566d78 _dispatch_workloop_worker_thread + 708
12 libsystem_pthread.dylib 0x00000001eed78804 _pthread_wqthread + 276
13 libsystem_pthread.dylib 0x00000001eed7f75c start_wqthread + 8
When I open the app while connected to my laptop and have the console for my iPhone open while crashing the app, I first get these messages under Errors and Faults:
error 16:14:06.383233-0500 remindrs Error: Requiring unknown module "undefined".
error 16:14:06.386759-0500 remindrs Unhandled JS Exception: Error: Requiring unknown module "undefined".
error 16:14:06.463315-0500 SpringBoard Ignoring state for untracked process [application<org.name.remindrs>:5966]: <RBSProcessState| task:none debug:none>
fault 16:14:06.559231-0500 SpringBoard Unable to move topic <private>, This topic was not in the list provided! APSTopicListOpportunistic
I've tried cleaning the build folder, turning off Swift compiler optimizations, and rearchived the project multiple times.
None of my searching has paid off and I'm not sure how to identify the issue I am having. I don't know if it is with React Native or with some configuration in Xcode.
Thank you for your help!
I solved the problem by removing a few lines of codes dealing with a Date. I'm not sure why this caused a crash in release and not debug but the problem is fixed!

Flutter - Phone Auth Verification ID is getting null sometimes for iOS

My App got rejected 4th time in review from Apple team, they are saying App is crashing on tap of verify OTP button. They have shared a crash log, After checking the log I got to know that app is crashing due to null verification ID.
However everything is working perfectly locally and Android version is live, I have tested in real device & in emulator. Now I am not able to understand why verification ID is getting null sometime. I have already added try catch to handle exception, But that is not working in iOS, But working in Android.
Can someone please help me on this.
Below is the crash log...
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 9
Last Exception Backtrace:
(0x1ae904a48 0x1ae62bfa4 0x1ae8085a8 0x1ae908af4 0x1ae90aa7c 0x10264cc88 0x102648d58 0x1026489ec 0x1ae5d0610 0x1ae5d1184 0x1ae57d404 0x1ae57ddf8 0x1ae587314 0x1ae620b88 0x1ae623760)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x00000001ae6da634 0x1ae6d7000 + 13876
1 libsystem_kernel.dylib 0x00000001ae6d9aa0 0x1ae6d7000 + 10912
2 CoreFoundation 0x00000001ae882288 0x1ae7d9000 + 692872
3 CoreFoundation 0x00000001ae87d3a8 0x1ae7d9000 + 672680
4 CoreFoundation 0x00000001ae87cadc 0x1ae7d9000 + 670428
5 GraphicsServices 0x00000001b8802328 0x1b87ff000 + 13096
6 UIKitCore 0x00000001b2977ae0 0x1b1f74000 + 10500832
7 Runner 0x000000010263edf4 0x102638000 + 28148
8 libdyld.dylib 0x00000001ae706360 0x1ae705000 + 4960
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x00000001ae6da634 0x1ae6d7000 + 13876
1 libsystem_kernel.dylib 0x00000001ae6d9aa0 0x1ae6d7000 + 10912
2 CoreFoundation 0x00000001ae882288 0x1ae7d9000 + 692872
3 CoreFoundation 0x00000001ae87d3a8 0x1ae7d9000 + 672680
4 CoreFoundation 0x00000001ae87cadc 0x1ae7d9000 + 670428
5 Foundation 0x00000001aebbc7f4 0x1aebb5000 + 30708
6 Foundation 0x00000001aebbc6d4 0x1aebb5000 + 30420
7 UIKitCore 0x00000001b2a10204 0x1b1f74000 + 11125252
8 Foundation 0x00000001aeced0a4 0x1aebb5000 + 1278116
9 libsystem_pthread.dylib 0x00000001ae61fd8c 0x1ae615000 + 44428
10 libsystem_pthread.dylib 0x00000001ae62376c 0x1ae615000 + 59244

iOS React Native Testflight EXC_CRASH(SIGABRT) only for the Apple Tester

For some reasons our internal testers was able to run the app but somehow the apple beta tester says the app crashes as soon as the app launches. They provided me with this error
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 1
Application Specific Information:
abort() called
Last Exception Backtrace:
(0x18d80827c 0x18c9e29f8 0x101124b94 0x101121108 0x18d80f900 0x18d6f14d0 0x18d6f2104 0x101137f20 0x1011778b4 0x101177614 0x18d247a38 0x18d2487d4 0x18d1f1324 0x18d1f1e40 0x18d1fa4ac 0x18d428114 0x18d42acd4)
Thread 1 name: Dispatch queue:com.facebook.react.ExceptionsManagerQueue
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x000000018d3a50dc 0x18d382000 + 143580
1 libsystem_pthread.dylib 0x000000018d41e094 0x18d41c000 + 8340
2 libsystem_c.dylib 0x000000018d2feea8 0x18d2a4000 + 372392
3 libc++abi.dylib 0x000000018c9cb788 0x18c9ca000 + 6024
4 libc++abi.dylib 0x000000018c9cb934 0x18c9ca000 + 6452
5 libobjc.A.dylib 0x000000018c9e2e00 0x18c9dd000 + 24064
6 libc++abi.dylib 0x000000018c9d7838 0x18c9ca000 + 55352
7 libc++abi.dylib 0x000000018c9d78c4 0x18c9ca000 + 55492
8 libdispatch.dylib 0x000000018d2487e8 0x18d1e8000 + 395240
9 libdispatch.dylib 0x000000018d1f1324 0x18d1e8000 + 37668
10 libdispatch.dylib 0x000000018d1f1e40 0x18d1e8000 + 40512
11 libdispatch.dylib 0x000000018d1fa4ac 0x18d1e8000 + 74924
12 libsystem_pthread.dylib 0x000000018d428114 0x18d41c000 + 49428
13 libsystem_pthread.dylib 0x000000018d42acd4 0x18d41c000 + 60628
im really not sure why the apple developer is experiencing crashes while the rest of the team was able to run the app normally through the testflight

How to handle crash from notification service extension crash?

Getting weird from notification service extension
I think this might be due to sending of AWS event from receivedNotification method which might be taking more time that causes OS killing it. if this the scenario then how should i handle the crash and prevent it.
please check the crash logs,
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace ASSERTIOND, Code 0xdead10cc
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001c829bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001c829b3a8 mach_msg + 72
2 CoreFoundation 0x00000001c869fbc4 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x00000001c869aa60 __CFRunLoopRun + 1396
4 CoreFoundation 0x00000001c869a1cc CFRunLoopRunSpecific + 436
5 Foundation 0x00000001c908f404 -[NSRunLoop+ 33796 (NSRunLoop) runMode:beforeDate:] + 300
6 Foundation 0x00000001c90cadf4 -[NSRunLoop+ 278004 (NSRunLoop) run] + 88
7 libxpc.dylib 0x00000001c836c070 _xpc_objc_main + 516
8 libxpc.dylib 0x00000001c836ea30 xpc_main + 180
9 Foundation 0x00000001c90ccdb0 +[NSXPCListener serviceListener] + 0
10 PlugInKit 0x00000001ce2eb498 0x1ce2d8000 + 79000
11 PlugInKit 0x00000001ce2eb2c4 0x1ce2d8000 + 78532
12 PlugInKit 0x00000001ce2eb848 0x1ce2d8000 + 79944
13 Foundation 0x00000001c92b46bc NSExtensionMain + 64
14 libdyld.dylib 0x00000001c815abb4 start + 4
#Sumeet.Jain you need to set debug executable on your extension
project their are some steps here.
step 1: select your service extension project to run
step 2: you will see list of your project below some option "SELECT EDIT SCHEME" option
step 3: after then you have to go for RUN -> INFO -> EXECUTABLE
step 4: and you should change "ASK TO LAUNCH" to "YOUR PROJECT"
THATS IT.

App crashes after displaying a ModalViewController and going to background state

My iOS app keeps crashing. I found the way I could make it crash consistently. I repeated the operation multiple times and I get the same crash log every single time.
The crash happens if I do the following: launch the app, use it a bit (optional), go to the main screen, open a modal ViewController, dismiss it, keep using the app (optional), close the app (press home button, not kill the app), wait a bit (optional), re-open the app. When the app is re-opened, it crashes after 1 second. Note that where you are in the app when you leave it does not cause/prevent the crash. No matter where you are on the app, it crashes the same way. If I use the app and don't open the modal VC, I can send it in background and re-open it with no problem.
Here is some of the crash log I get every time (I took out what I thought was not related, I can provide the full log):
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x317d332c __pthread_kill + 8
1 libsystem_c.dylib 0x33ed0208 pthread_kill + 48
2 libsystem_c.dylib 0x33ec9298 abort + 88
3 libc++abi.dylib 0x36d56f64 abort_message + 40
4 libc++abi.dylib 0x36d54346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x35321350 _objc_terminate + 140
6 libc++abi.dylib 0x36d543be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x36d5444a std::terminate() + 14
8 libc++abi.dylib 0x36d5581e __cxa_rethrow + 82
9 libobjc.A.dylib 0x353212a2 objc_exception_rethrow + 6
10 CoreFoundation 0x37572506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x37572366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x33d31432 GSEventRunModal + 130
13 UIKit 0x3131ecce UIApplicationMain + 1074
14 ***my app name** 0x0006f140 0x6b000 + 16704
15 ***my app name** 0x0006d5f0 0x6b000 + 9712
It's hard to provide some code, and I don't even know what I could possibly give..
I'd love some help, I have no idea why this is happening..
Feels to me like some cleanup is happening whilst you're in the background. If it's not iOS 6 then check what you;re doing to handle viewDidUnload and in any version, check what you're doing in viewWillDisappear/viewDidDisappear and viewWillAppear/viewDidAppear.

Resources