我正在使用sparkle更新我的应用程序。然而,我正面临着一个问题。
这是我的appcast.xml
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/" version="1.2">
<channel>
<title>Sparkle Test App Changelog</title>
<link>
http://sparkle-project.org/files/sparkletestcast.xml
</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<item>
<title>Version 2.0</title>
<description>
<![CDATA[...]]>
</description>
<pubDate>Sat, 26 Jul 2014 15:20:11 +0000</pubDate>
<enclosure url="http://techheal.in/mac/testing_techheal.dmg" sparkle:version="2" length="107758" type="application/octet-stream" sparkle:dsaSignature="MCwCFCdoW13VBGJWIfIklKxQVyetgxE7AhQTVuY9uQT0KOV1UEk21epBsGZMPg=="/>
</item>
</channel>
这是我得到的流行音乐:

问题是我运行的是最新的构建版本,但它仍然显示由于构建版本的不同而有更新
我的最新版本是:2我的最新版本是:1

在xml中,我指定了我的最新版本,但我不知道它的内部版本号是从哪里来的。请帮帮忙
发布于 2015-10-03 05:20:09
"Build“就是CFBundleVersion。“CFBundleShortVersionString”为版本。
它们通常应该是相同的,"build“是内部的,"version”是您向用户显示的内容。这篇(旧的但很好的)文章给了你一些好的信息:
http://www.dribin.org/dave/blog/archives/2006/08/02/versioning_os_x_apps/
在您的例子中,Sparkle抓取了CFBundleVersion (值为1),并将其与XML文件(值为2)进行比较,认为您必须升级。
https://stackoverflow.com/questions/32578769
复制相似问题