Today Widget Not Launching On Device(works on Simulator)

流过昼夜 提交于 2019-12-01 17:07:18

问题


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:

  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.


回答1:


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



来源:https://stackoverflow.com/questions/29669848/today-widget-not-launching-on-deviceworks-on-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!