new widgets doesn't appear in widget gallery

Hello,

I have added a widget extension in my iOS app but when I run the iOS app, it doesn't appear in widget gallery.

So I tried to run the widget extension directly and most of time I get this error :


SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)}., NSUnderlyingError=0x10ffccbb0 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=1 "Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)" UserInfo={NSLocalizedDescription=Failed to get descriptors for extensionBundleID (com.Ce-dricLoneux.School-Companion.WidgetsSchoolCompanion)}}}
Domain: DTXMessage
Code: 1


Then I can close this message and the widget is in app gallery.
In the settings of the iOS apps, section : Framework, libraries and embedded content : The widget .appex is there so I don't understand why the widget extension isn't packed with iOS app.

I have the exact same problem but with the widget not showing even after I close the message. This happens in Beta 3
I also have exact problem. How to fix this?
I have had this problem since beta 3, only when building with Release configuration. When building for Debug the widget runs as expected. I was hoping for a fix in beta 4 but the problem seems to persist.
I am getting the same error.
In this thread they provided a solution, but it is not working for me: https://developer.apple.com/forums/thread/651611

I was super excited to try the new WidgetKit, but I feel discourage with this error.
i have the seme problem... try restart the phone, in my case the widget appear

new widgets doesn't appear in widget gallery
 
 
Q