Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Today Widget Not Launching On Device(works on Simulator)

Hi I have very strange problem. My Today Widget works perfectly fine in Simulator, however when I choose to run it on real device and select 'Today' application xCode just says 'Running Today on XXX's iPhone' but on that device there is no widget. I checked in Do Not Include section and it's not there either.

I've searched a lot and most of the people has three type of problems:

  1. Missing 64 bit architecture. My configuration is: enter image description here
  2. Different app and extension prefix - mine are exactly the same(of course with .TodayWidget addition for the widget)
  3. Some internal crash in the widget - however when this happens you could see at least the widget title. Moreover my widget is working fine in simulator.

So any advice will be highly appreciated? I've tried clean project, removing it from device restarting xCode... I'm working with xCode 6.2 and tried on iPhone 5(iOS 8.2) and iPhone 6+(8.2)

UPDATE

Updating devices to iOS 8.3 hence the xCode to 6.3 seems to resolve the problem. However I'm worried if it'll work on other iOS 8.2 devices.

SOLUTION

As @gaRik pointed my widget deployment target was set to 8.3 which caused widget to fail on 8.2 devices.

like image 730
hris.to Avatar asked Apr 16 '15 08:04

hris.to


People also ask

How do you refresh iPhone simulator?

If nothing above works out, then in Simulator menu , go to Devices and click on Restart . This restarts the device itself. Now go back to your terminal (where you're running expo) and press i (for ios simulator) and it should open up the app again.

How do you enable simulation on iPhone?

To launch a Simulator without running an appChoose Xcode > Open Developer Tool > Simulator. Control-click the Xcode icon in the Dock, and from the shortcut menu, choose Open Developer Tool > Simulator.

How do I pair my Apple Watch simulator with my iPhone simulator?

How do I get the watch simulator to appear when I select an iPhone simulator in Device? In the Devices window under Simulators, select an iPhone 5 and later simulator. Under the Paired Watches table, click the Add button (+).


1 Answers

Check Widget target(Build Settings -> iOS Deployment Target(must be less or equal as iOS version on your device))

like image 102
gaRik Avatar answered Nov 15 '22 01:11

gaRik