App Crash on Launch - Entry Point Not Found in Debug Dylib
I'm experiencing a crash when launching my widget app, and I'm hoping someone can help me figure out what's going on. It
#1 0x00000001fce533bc in pthread_kill ()
#2 0x0000000196dc7524 in abort ()
#3 0x00000001025c94f0 in abort_swift_entry_main_entry_point_not_found___debug_dylib ()
#4 0x00000001025c9a48 in lookupMainFuncAddressInDebugDylibMachHeader ()
#5 0x00000001025c9bf4 in __debug_dylib_swift_extension_entry_trampoline ()
#6 0x00000001d3990214 in -[EXSwiftUI_Subsystem init] ()
#7 0x00000001d3990798 in __37+[EXSwiftUI_Subsystem sharedInstance]_block_invoke ()
#8 0x000000018b91ca30 in _dispatch_client_callout ()
#9 0x000000018b91e2b0 in _dispatch_once_callout ()
#10 0x00000001d3989a94 in +[EXSwiftUI_Subsystem sharedInstance] ()
#11 0x00000001c6b2b0c4 in __PLUGINKIT_CALLING_OUT_TO_CLIENT_SUBSYSTEM_FOR_INIT__ ()
#12 0x00000001c6b42ab0 in ___lldb_unnamed_symbol912 ()
#13 0x00000001c6b2eae8 in ___lldb_unnamed_symbol492 ()
#14 0x00000001c6b2a450 in ___lldb_unnamed_symbol441 ()
#15 0x00000001c6b421c8 in ___lldb_unnamed_symbol906 ()
#16 0x00000001c6b2b33c in ___lldb_unnamed_symbol449 ()
#17 0x00000001c6b2a2e8 in ___lldb_unnamed_symbol438 ()
#18 0x00000001d3987d10 in EXExtensionMain ()
#19 0x000000018d4d9ebc in NSExtensionMain ()
2024-11-06 11:57:06.650900+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Looking up debug dylib relative path
2024-11-06 11:57:06.651655+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Found debug dylib relative path string `WidgetTest.debug.dylib`
2024-11-06 11:57:06.651678+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Looking up debug dylib entry point name
2024-11-06 11:57:06.651683+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] No debug dylib entry point name defined.
2024-11-06 11:57:06.651687+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Looking up debug dylib install name
2024-11-06 11:57:06.651692+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Found debug dylib install name string `@rpath/WidgetTest.debug.dylib`
2024-11-06 11:57:06.651700+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Looking for Previews JIT link entry point.
2024-11-06 11:57:06.651910+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] No Previews JIT entry point found.
2024-11-06 11:57:06.651920+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Gave PreviewsInjection a chance to run and it returned, continuing with debug dylib.
2024-11-06 11:57:06.651923+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Looking for main entry point.
2024-11-06 11:57:06.651925+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Opening debug dylib with '@rpath/WidgetTest.debug.dylib'
2024-11-06 11:57:06.651935+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Debug dylib handle: 0x2056a54c0
2024-11-06 11:57:06.651938+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] No entry point found. Checking for alias.
2024-11-06 11:57:06.651940+0900 WidgetTest[582:19000] [PreviewsAgentExecutorLibrary] Calling provided entry point.
The app crashes immediately upon launch.
The crash appears to be related to __debug_dylib_swift_extension_entry_trampoline.
The logs indicate that PreviewsAgentExecutorLibrary cannot find the debug dylib entry point.
Specific messages include:
"No debug dylib entry point name defined."
"No entry point found. Checking for alias."
Additional Details:
The crash seems to be happening during the initialization of EXSwiftUI_Subsystem.
The function abort_swift_entry_main_entry_point_not_found___debug_dylib suggests that the main entry point in the debug dylib is missing.
The app uses SwiftUI and includes a widget extension.
The issue persists even after disabling SwiftUI Previews and cleaning the build.
**Notably, like others have reported, this issue only occurs when using Xcode 16, and it only happens on devices running iOS 15.
**