我在让Sparkle阅读我的应用程序时遇到了问题,该程序位于我的网站根目录中:
<?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 reports似乎不喜欢提要和日志:
Sparkle: Error: An error occurred in retrieving update information. Please try again later. An error occurred while parsing the update feed.我见过这个post,但它的解决方案似乎没有帮助(尽管Sparkle在我使用示例应用程序时确实工作得很好)。大概我的appcast是错的。如果你能帮我纠正这个错误,我将不胜感激。
发布于 2016-02-01 19:22:43
确保在HTTPS上提供闪光源,或者在您的Info.plist中将“Allow Arbitrary”标记为“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/
https://stackoverflow.com/questions/31118465
复制相似问题