我在 GitHub 上托管我的下载,以节省我自己服务器上的带宽,但是当 Sparkle updater 尝试从 GitHub 下载更新时,它失败并出现错误:
Sparkle Error (continued): The operation couldn’t be completed. (NSURLErrorDomain error -1100.)
我发现这是由于 GitHub 的证书不匹配,正如您从这次尝试使用 wget
从 GitHub 下载我的应用程序中看到的那样:
$ wget http://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip
--2010-11-21 16:29:26-- http://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip [following]
--2010-11-21 16:29:27-- https://github.com/downloads/chetan51/sidestep/Sidestep%20v0.2.1.zip
Connecting to github.com|207.97.227.239|:443... connected.
ERROR: certificate common name `*.github.com' doesn't match requested host name `github.com'.
To connect to github.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
这个问题有什么解决方法吗?
最佳答案
我怀疑您实际上并没有深入了解证书错误。这个周末我遇到了类似的错误,发现 Sparkle(错误地)对附件 URL 执行了 %-escaping。如果您将 %20 更改为纯空格,您可能会收到一个不同的错误,指出您认为遇到的问题。
我知道这不是很有帮助。
关于cocoa - 将 Sparkle Updater 与托管在 GitHub 上的下载一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4241312/