9

This problem is very strange, my Today widget work smoothly in Simulator but in my device (iPhone 5) is only showing the header of the Widget with the icon and the title.

I have read those questions but didn't solve my problem:

  1. Today Widget Not Launching On Device(works on Simulator)

  2. iOS App Today Extension not uploaded to physical device

My project settings:

  • My Development Target for both targets is the same: iOS 9.2
  • Widget's Scheme is ok, with Executable my main app

Did you have any suggestions to solve this problem?

Community
  • 1
  • 1
yannisalexiou
  • 605
  • 12
  • 25

2 Answers2

16

It sounds like there are a couple of different widget problems here.

In my case, the widget DIDN'T EXIST on the deployment phone, but did on the simulator.

The deployment target OS for the widget was set higher than the OS on the deployment phone. Setting the widget deployment target to 9.0 (making it the same as the main app deployment target and less than the OS on the deployment phone) solved the problem.

Peter
  • 201
  • 2
  • 4
  • Thank you for your answer @Peter ! I didn't remember how I solve this problem, I had checked the deployment target as you say, with no result. I remember that I change some build and info settings and after many tries, the widget worked like a charm! – yannisalexiou Aug 03 '17 at 06:32
  • 1
    I have the same problem, the Widget extension deployment info has higher value than main app. To fix it, make sure widget and main app has the same. – nahung89 Jun 20 '18 at 10:05
2

Delete the app from your device and re-run XCode - that solved it for me.

I also had to set the iOS Deployment version to match that of my app, which made it show up on the simulator, but not on my device.

Petrus Theron
  • 27,855
  • 36
  • 153
  • 287