我正在实施新的iOS10扩展以使用丰富的通知.我试图在推送通知上测试它但不工作,我只是收到一个简单的通知,而不是通过扩展.
我做了官方网站和其他一些地方指定的所有内容:
正如我所说,我收到通知但从未通过扩展.我看到操作系统如何尝试加载扩展但随后抛出一个没有相关描述的错误来识别问题:
Dec 31 21:00:00 iPhone SpringBoard(libextension.dylib)[51] <Notice>: calling plugIn beginUsing:
Dec 31 21:00:57 iPhone pkd[86] <Notice>: assigning plug-in com.test.app.NotificationWithAttachmentExtension(1.0) to plugin sandbox
Dec 31 21:03:57 iPhone pkd[86] <Notice>: enabling pid=51 for plug-in com.test.app.NotificationWithAttachmentExtension(1.0) 38BB5FF1-2597-42E0-B950-169DBFA80573 /private/var/containers/Bundle/Application/A8C47706-C0EC-4FB1-ABA7-0118372F6900/testapp.app/PlugIns/NotificationWithAttachmentExtension.appex
Dec 31 21:00:53 iPhone SpringBoard(PlugInKit)[51] <Notice>: plugin com.test.app.NotificationWithAttachmentExtension interrupted
Dec 31 21:03:56 iPhone SpringBoard(PlugInKit)[51] <Notice>: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.test.app.NotificationWithAttachmentExtension" UserInfo={NSDebugDescription=connection to service named com.test.app.NotificationWithAttachmentExtension}
Jun 29 13:33:36 iPhone SpringBoard(libextension.dylib)[51] <Notice>: PlugInKit …Run Code Online (Sandbox Code Playgroud) 我有通用链接正常工作,当安装应用程序时,我看到链接如何打开应用程序,并且当它未安装时打开safari中的URL.
实际上我想要做的是重定向并转到应用商店,这样用户就可以直接下载应用.我将在html文件中包含重定向,因为我知道通用链接不支持重定向http服务器配置级别(无论如何我认为这仅适用于清单文件,apple-apps-site-association)
任何人都可以确认这是否是正确的方法,或唯一的方法吗?我不喜欢先打开safari的想法,加载我的html(只有重定向),然后去商店.看起来没有更简单的方法来做到这一点.
我总是收到以下错误:
plugin.Open("./plugin"): plugin was built with a different version of package internal/cpu
Run Code Online (Sandbox Code Playgroud)
我对这个问题做了一些研究,它清楚地指出该插件是使用与加载插件的应用程序不同的上下文版本(golang 版本或依赖项)构建的。
我在 Docker 下运行了一个最小的测试,使用完全相同的 Go 编译器版本和相同的映像来构建插件和应用程序,但我仍然遇到相同的错误。
如果有人能指出故障出在哪里,或者我还应该检查哪些内容来防止出现此错误,我将不胜感激。
值得一提的是,我使用的是 MacOS,但我是在 Docker 容器下运行测试。实际上,我能够在 Docker 下为第三方产品构建和运行 golang 插件。
这是代码:
// main.go
package main
import (
"fmt"
"plugin"
)
func main() {
path := "./plugin.so"
p, err := plugin.Open(path)
if err != nil {
fmt.Printf("unable to load plugin at %s.\n%v", path, err)
}
symbol, err := p.Lookup("Create")
if err != nil {
fmt.Printf("unable to find Create() function in plugin %s.\n%v", path, …Run Code Online (Sandbox Code Playgroud) svn专家的简单问题:
现在我正在做一个大项目的第一次提交(不需要解释细节),它就像几乎2 Gb的文件.
承诺花了很长时间,我看到像往常一样前进的点.所以我的问题是,是否有办法显示我的提交的详细进度,因为我不知道真正的进展,已经上传了多少,以及有多少未决.
谢谢