问题
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:
- Missing 64 bit architecture. My configuration is:
- Different app and extension prefix - mine are exactly the same(of course with .TodayWidget addition for the widget)
- 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