iOS 8 Today Extension不在设备上工作 [英] iOS 8 Today Extension not working on device

查看:112
本文介绍了iOS 8 Today Extension不在设备上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在模拟器上运行Today Extension时,一切正常,它会按预期显示以下内容:

When I run my Today Extension on the simulator everything works fine and it displays the following as expected:

然而,当我在我的设备(iPod touch和iPhone 5s)上运行它时身体将不会显示(不介意标题和图标,已更改)

However when I run it on my devices (iPod touch and iPhone 5s) the body won't show (don't mind the title and icon, that was changed)

我将调试器附加到我的扩展程序中,我得到了这个:

I attached the debugger to my extension and I got this:

我不知道所有这些意味着什么...

I have no idea what all of this means...

我删除了今天扩展的所有代码,以检查我的代码是否有问题,没有任何改变,所以我怀疑我的代码存在问题。任何有关如何解决这个问题的建议将不胜感激。

I removed all code for the Today Extension to check if there was a problem with my code and nothing changed so I doubt theres a problem with my code. Any suggestions on how to fix this would be greatly appreciated.

(如果有任何意义,我确实启用了应用程序组)

(I do have app groups enabled if thats of any significance)

推荐答案

我发现我正在使用错误的联名访问我的应用程序组。只需确保您使用group.something.something访问应用程序组,而不仅仅是something.something

I found out that I was accessing my app group with the wrong suitename. Just make sure you access the app group with "group.something.something" not just "something.something"

这篇关于iOS 8 Today Extension不在设备上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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