Hello everyone, my app A now supports iOS Widget C under the same Xcode project. Now I have another app B under this project, and I hope it can also support this Widget C. What should be done? How should the app group be configured?
I have found some solutions: for example, add this key under the info.plist corresponding to app B: <key>NSExtension</key> <dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.widgetkit-extension</string> <key>NSExtensionPrincipalClass</key> <string>$(PRODUCT_MODULE_NAME).WidgetEntryView</string> </dict>
However, when I configured it and started running, not only could I not see the support Widget C, but the screen also went black. Thank you all.