Finder Sync Extension develop in macos 14.4 but crash in macos 10.15

Hello,

I am developing a Finder plugin for a MacOS application. It was working fine during development and testing on os version 14.4. However, when I tried running the application on os version 10.15, it notworking.If I run the plugin binary directly, it will crash.

crash info:

Time Awake Since Boot: 1100 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   exc handler [719]

Application Specific Information:
Configuration error: Couldn't retrieve XPCService dictionary from service bundle.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libxpc.dylib                  	0x00007fff71b04bfb _xpc_copy_xpcservice_dictionary.cold.1 + 14
1   libxpc.dylib                  	0x00007fff71af2fcd _xpc_copy_xpcservice_dictionary + 106
2   libxpc.dylib                  	0x00007fff71af2e27 xpc_main + 61
3   com.apple.Foundation          	0x00007fff3a0a5e6f -[NSXPCListener resume] + 155
4   com.apple.pluginkit.framework 	0x00007fff6258decb 0x7fff62575000 + 102091
5   com.apple.pluginkit.framework 	0x00007fff6258dbf4 0x7fff62575000 + 101364
6   com.apple.pluginkit.framework 	0x00007fff6258e2b2 0x7fff62575000 + 103090
7   com.apple.Foundation          	0x00007fff3a11eb4c NSExtensionMain + 49
8   libdyld.dylib                 	0x00007fff718a5cc9 start + 1

This issue just requires creating the simplest APP project + FinderSyncExtension project in Xcode 14.4 on macOS. Set the minimum supported system to 10.15 to reproduce the issue.

How can I resolve it?

Oh, wow, cool. Thanks for the running the test and sharing the results.

And just FYI, I filed my own bug about this (r. 129399793).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Finder Sync Extension develop in macos 14.4 but crash in macos 10.15
 
 
Q