Widget is shown on iPhone but not iPad

I am developing an app with a widget available. Until recently the widget was being shown on both an iPhone and an iPad devices. Then I changed some logic in the widget, and now it only displays on the iPhone.

I also use the Xcode simulators in the development, and the widget is available on both iPhone and iPad simulators, with same code.

Summarizing the status for the widget.

Simulators

  • iPhone (13 Pro Max, iPhone 12) - OK
  • iPad Pro (12.9" 5th Gen) - OK

Devices

  • iPhone (11) - OK
  • iPad (Air 2) - Not available

I can attach the Widget extension to the debugger for the simulators and the iPhone device. However the process in not there when I use the iPad device, so cannot attach the widget code to the debugger. Even if I attach the widget extension by name to the debugger, it is as if it is not running.

I can run the widget extension directly on the iPad device (using an appropriate build scheme) and the details of the info displayed by the widget is the same as for the iPhone. So it is not running the widget on an iPad that is the problem.

It seems like the widget extension is not embedded in the app code when the app is loaded on to an iPad device.

Has anyone experienced anything similar?

Not necessarily with a widget, it could be with another framework extension.

Answered by Greenamberred in 713444022

In trying to resolve this issue, I had loaded the widget directly on to the iPad. One time I received an error notification that the Apple Springboard failed to launch.

This new avenue of investigation led to the solution in my case.

  • Deleted the app from the iPad
  • Deleted the widgets for the app (as I had loaded them directly)
  • Powered down and restarted the iPad
  • Downloaded the app, using Xcode, to the iPad

Apparently the Springboard cache had become corrupted or has lost synchronicity with the developing app, and reseting it sorted out the issue.

Accepted Answer

In trying to resolve this issue, I had loaded the widget directly on to the iPad. One time I received an error notification that the Apple Springboard failed to launch.

This new avenue of investigation led to the solution in my case.

  • Deleted the app from the iPad
  • Deleted the widgets for the app (as I had loaded them directly)
  • Powered down and restarted the iPad
  • Downloaded the app, using Xcode, to the iPad

Apparently the Springboard cache had become corrupted or has lost synchronicity with the developing app, and reseting it sorted out the issue.

Widget is shown on iPhone but not iPad
 
 
Q