今天View Extension(Widget)无效 [英] Today View Extension (Widget) not working

查看:104
本文介绍了今天View Extension(Widget)无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现其他几个线程有类似的问题,但没有人有完全相同的问题。

I found several other threads with similar problems, but no one has exactly the same problems.

除了DID工作一段时间!错误现在在它工作一段时间之前一直在发生..

Besides it DID work some time! the errors now keep occurring while it was working some time before..

当运行我的应用程序时,它有一个构建目标今日视图扩展,我得不到实际结果。

When Running my app, that has a build Target "Today View Extension", I get no actual result.

扩展程序显示在通知中心,但没有正文(模拟器和设备)。

The Extension is shown in Notification Center, but has no body (Simulator AND device).

< img src =https://i.stack.imgur.com/KRrR5.pngalt =没有身体>

当我尝试运行App时(不是目标扩展)并通过PID手动附加过程我收到此错误:

Also when I try to run the App (not the target extension) and attach the process manually by PID I get this error:

我也有错误,我的扩展(具有捆绑显示名称Info.plist中的自定义名称条目确实显示了包含扩展程序的应用程序的名称,而不是在Info.plist中设置的字符串

I also had the error that my Extension (that has a "Bundle Display Name" entry in Info.plist for a custom Name) did show the Name of the Extension-containing App, and not the string that was set in the Info.plist

奇怪的是,它有时会起作用,有时却不起作用,但是当它没有时,就会有五种不同的原因t。

Strange thing is that sometimes it worked, sometimes it doesn't, but when it does not there were like five different reasons why not.

我想问一下有类似/相同问题的人在这里发帖来收集出现的所有问题,并可能收集这些问题的解决方法/解决方案。

I want to ask people who have similar/same problems to post them here to collect all the issues appearing and possibly collect workarounds / solutions for these problems.

谢谢。

推荐答案

对于现在遇到麻烦的人:

For anyone having troubles now:

对于beta 4和beta SDK 4,修复了很多错误:

With beta 4 and beta SDK 4 a lot of bugs were fixed:

 [self setPrefferedContentSize:]

设置视图大小现在正常工作(如果你有查看你的麻烦扩展名)
如果你的更新扩展没有显示在Notification Center中,请务必查看日志输出,在那里你可以看到调试器所连接的任务,如果有无选择,请尝试停止并运行再次,它将在一些尝试后工作!

to set the views size is now working properly (if you have troubles viewing your Extension) If your updated Extension is not showing in Notification Center be sure to have a look at the log output, there you can see what task the debugger is attached to, if there is "no Selection" try stopping and running again, it will work after some tries!

如果您有任何问题随时可以询问,

If you have questions feel free to ask,

快乐编码

这篇关于今天View Extension(Widget)无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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