今天小工具无法在设备上启动(适用于模拟器) [英] Today Widget Not Launching On Device(works on Simulator)

查看:85
本文介绍了今天小工具无法在设备上启动(适用于模拟器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常奇怪的问题。 My Today Widget在Simulator中运行得非常好,但是当我选择在真实设备上运行它并选择今天应用程序时,xCode只是说在XXX的iPhone上运行今天,但在该设备上没有小部件。我检查了不包括部分,它也不存在。

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. 缺少64位架构。我的配置是:

  2. 不同应用程序和扩展名前缀 - 我的完全相同(当然,小部件的.TodayWidget添加)

  3. 小部件中的一些内部崩溃 - 但是当发生这种情况时,您至少可以看到小部件标题。此外,我的小部件在模拟器中工作正常。

所以任何建议都将受到高度赞赏?我已经尝试过清理项目,将其从重启xCode的设备中删除...我正在使用xCode 6.2并在iPhone 5(iOS 8.2)和iPhone 6+(8.2)上试用

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

将设备更新到iOS 8.3,因此xCode到6.3似乎可以解决问题。但是我很担心它是否适用于其他iOS 8.2设备。

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.

解决方案

作为@gaRik指出我的小部件部署目标设置为8.3导致小部件在8.2设备上失败。

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

推荐答案

检查小组件目标(构建设置 - > iOS部署目标(必须小于或等于设备上的iOS版本))

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

这篇关于今天小工具无法在设备上启动(适用于模拟器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆