Today-Widget "Unable to load" error

Ildar.Z picture Ildar.Z · Jan 18, 2017 · Viewed 10.7k times · Source

From time to time widget crashing with "unable to load" error. Is anyone know how to fix it? Widget haven't requests to server or smth else.

enter image description here

Answer

PGDev picture PGDev · Mar 18, 2017

Unable to load in today extension mostly appears when:

  1. You extension crash due to some reason
  2. It takes more memory than what is provided by the system. (Memory Limit : max 16MB approx.)

Debug your app extension to find out the exact problem.

Refer to Xcode's Debug Gauge for Memory and CPU utilization.

Edit:

Debugging today extension

You can debug your extension the same way you debug your main project. Just select that particular target scheme in your Xcode and run the project.

enter image description here

Now try using the breakpoints and other print statements in the extension’s code and you are good to go. Happy coding..😊