Widget in iOS app not shown as Mac Catalyst app

I wish to support Mac with my iPhone/iPad app using Mac Catalyst. Our app shows widgets on iPhone/iPad home screen properly.

Using Mac Catalyst is straight forward (except to exclude all ActivityKit codes). However, although the app shows up and work perfectly, I can't see the widgets in notification center. Separate compile the widget extensions show no errors but nothing is shown. Also tried build separately, drag into Applications folder, run the build and the widgets are not shown.

Any suggestions? Using the Xcode 14.2 and macOS 13.1.

  • I have also tried removing the watch target (our app supports widgets and watch face) and the widgets also refuse to show up. Also tested on macOS 13.2.

Add a Comment

Replies

I finally found the reason:

In build phase of Xcode, the Widget Extension is set to iOS not Always Used. Once changed, widgets appeared!

Hope this helps others facing the same issue.