1

我在让 Sparkle 阅读我网站根目录中的 appcast 时遇到问题:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>myApp</title>
<link>http://www.myWebSite.net/appcast.xml</link>
<description>
Generate docs.    
</description>
<language>en</language>
<item>
<title>Version 6.2 (1 new feature)</title>
<sparkle:releaseNotesLink>http://myWebSite.net/myApp.shtml</sparkle:releaseNotesLink>
<pubDate>Sun, 28 Jun 2015 19:20:11 +0000</pubDate>
<enclosure url="http://yWebSite.net/downloads/myApp.zip" sparkle:version=“6.2” length=“1500000” type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.10</sparkle:minimumSystemVersion>
</item>
</channel>
</rss>

在我的应用程序中,我添加了一个用户首选项:

[prefs setObject:@"http://www.myWebSite.net/appcast.xml" forKey:@"SUFeedURL"];
[prefs synchronize];

当我选择“检查更新”菜单项 Sparkle 报告时,它似乎不喜欢提要和日志:

Sparkle: Error: An error occurred in retrieving update information. Please try again later. An error occurred while parsing the update feed.

我看过这篇文章,但它的解决方案似乎没有帮助(尽管当我使用示例 appcast 时 Sparkle 确实可以正常工作)。大概我的appcast是错误的。我会感谢一些帮助纠正它。

4

1 回答 1

-1

确保在 HTTPS 上提供 sparkle 提要或在 Info.plist 中将“允许任意加载”标记为“是”

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

你也可以试试这个无忧的构建服务器 http://amtourky.me/2016/01/20/mac-os-x-continuous-delivery-sparkler-the-missing-build-server-for-sparkle/

于 2016-02-01T11:22:42.713 回答