App was crashing in xcode 16 due to Quicklook UI framework

QLPreviewView was used in the app to display the file previews. But the following crash was happening.

Date/Time: 2024-09-13 22:03:59.056 +0530 OS Version: Mac OS X 10.13.6 (17G14042) Report Version: 12 Anonymous UUID: 7CA3750A-2BDD-3FFF-5940-E5EEAE2E55F5

Time Awake Since Boot: 4300 seconds

System Integrity Protection: disabled

Notes: Translocated Process

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x1] Library missing

Application Specific Information: dyld: launch, loading dependent libraries

Dyld Error Message: Library not loaded: /System/Library/Frameworks/QuickLookUI.framework/Versions/A/QuickLookUI Referenced from: /private/var/folders/*/Notebook (Beta).app/Contents/MacOS/Notebook (Beta) Reason: image not found

Same Problem here with with a customer running our app on macOS 11.7.10:

Process: Safe + [4989] Path: /Applications/Safe +.app/Contents/MacOS/Safe + Identifier: de.safe-app.MacOSSafe Version: 14.0.6 (14.0.602) App Item ID: 1415537597 App External ID: 869464556 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Safe + [4989] User ID: 501

Date/Time: 2024-10-18 13:32:34.338 +0200 OS Version: macOS 11.7.10 (20G1427) Report Version: 12 Anonymous UUID: 337E3C66-0D30-68D6-DB6A-C5B5DAA917CA

Sleep/Wake UUID: CD6604B8-2A43-44A6-9CC9-656B39B53109

Time Awake Since Boot: 93000 seconds Time Since Wake: 200 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x1] Library missing

Application Specific Information: dyld: launch, loading dependent libraries

Dyld Error Message: dyld: Using shared cache: 3694F5E4-3E85-3CD5-A2B0-534E2DFC1355 Library not loaded: /System/Library/Frameworks/QuickLookUI.framework/Versions/A/QuickLookUI Referenced from: /Applications/Safe +.app/Contents/MacOS/Safe + Reason: image not found

Good news for devs in this thread; Xcode 16.1 (last beta) fixed this issue (at least for my app).

from macOS Sequoia 15.1 RC Release Notes

Resolved Issues Fixed: Back-deploying apps that link QuickLookUI to macOS 11 or earlier might crash. (133213738) (FB14667312)

So re-compile with Xcode 16 + macOS 15.1..and it should work

App was crashing in xcode 16 due to Quicklook UI framework
 
 
Q