You’re now watching this thread. If you’ve opted in to email or web notifications, you’ll be notified when there’s activity. Click again to stop watching or visit your profile to manage watched threads and notifications.
You’ve stopped watching this thread and will no longer receive emails or web notifications when there’s activity. Click again to start watching.
I add a new widget to my app, just run this widget, always crash.
My app project's source code was Objective-C code. The crash point is "WidgetKit`__lldbunnamed_symbol2780$$WidgetKit:"
Details
SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.youku.YouKu.YKWidget' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.youku.YouKu.YKWidget)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.youku.YouKu.YKWidget)}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.youku.YouKu.YKWidget' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.youku.YouKu.YKWidget)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.youku.YouKu.YKWidget)}., NSUnderlyingError=0x104e27230 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.youku.YouKu.YKWidget)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.youku.YouKu.YKWidget)}}}
Domain: DTXMessage
Code: 1
--
System Information
macOS Version 10.15.5 (Build 19F101)
Xcode 12.0 (17177)
I can reproduce this crash for my release version as well and reported the issue here: FB8178959 I figured out that if you disable the DEAD_CODE_STRIPPING settings for the release build, the widget is not crashing anymore. So I assume that this is an Xcode issue.