Sparkle appcast无法正常工作

时间:2015-06-29 14:35:28

标签: sparkle

我在让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];

当我选择我的&#39;检查更新&#39;菜单项Sparkle报告它似乎不喜欢Feed和日志:

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

我已经看过这个post,但它的解决方案似乎没有帮助(尽管我使用示例appcast时Sparkle确实工作正常)。大概是我的appcast错了。我非常感谢帮助纠正它。

1 个答案:

答案 0 :(得分:-1)

确保在HTTPS上提供闪烁提要或标记“允许任意负载”#39;在Info.plist中为YES

<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/