2.2 C
Canberra
Wednesday, July 23, 2025

swift – QLPreviewController crashes with iOS 18


My app has a PDFViewer utilizing QLPreviewController library. This has been working with none downside till the final month. Since then I have been getting a number of crashes with iOS 18. That is the stacktrace:

          Crashed: com.apple.main-thread
0  QuickLook                      0x137fc __47-[QLPreviewController setCanChangeCurrentPage:]_block_invoke + 40
1  libdispatch.dylib              0x2370 _dispatch_call_block_and_release + 32
2  libdispatch.dylib              0x40d0 _dispatch_client_callout + 20
3  libdispatch.dylib              0x129e0 _dispatch_main_queue_drain + 980
4  libdispatch.dylib              0x125fc _dispatch_main_queue_callback_4CF + 44
5  CoreFoundation                 0x56f64 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
6  CoreFoundation                 0x54188 __CFRunLoopRun + 1996
7  CoreFoundation                 0x535b8 CFRunLoopRunSpecific + 572
8  GraphicsServices               0x11c4 GSEventRunModal + 164
9  UIKitCore                      0x3de2c0 -[UIApplication _run] + 816
10 UIKitCore                      0x48cddc UIApplicationMain + 340
11 MyApp                          0x11300 most important + 14 (most important.m:14)
12 ???                            0x1c362cd34 (Lacking)

Checking this crash with XCode > organizer I haven’t got extra info, it is the identical stacktrace.
I am unable to reproduce the error domestically.

The one reference I’ve discovered a couple of comparable problem is with giant PDFs however in my case some crashes occurs with PDF not so giant, and then again the crash says setCanChangeCurrentPage and that is about altering the web page…

Anny clue of what’s occurring?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles