gpt4 book ai didi

html - Help Viewer 在哪里缓存文件? Mac Help Viewer 不显示最新版本的 HTML 文件。这工作了数周。怎么了?

转载 作者:搜寻专家 更新时间:2023-10-31 22:47:44 30 4
gpt4 key购买 nike

Xcode 4.5.2 Mountain Lion,Mac 应用

我严格遵守文档。帮助文件夹及其子文件夹已添加到项目/Resources 文件夹并显示为蓝色。

如有必要,文件夹引用由 xcode 添加。

无论是在 Xcode 中还是在外部文本编辑器中查看 HTML 文件,我都会看到文件的新版本。

在应用内,帮助页面全部显示, anchor 有效,但页面是旧版本。

最新版本未显示的特定文件是 DgxFiles.html它在下面的方案中位于 ../pgs/DgxFiles.html。

当我在应用程序中访问“帮助”时,我看到了旧版本的 HTML 文件。旧的帮助文件似乎缓存在某处。

App的Info.plist有

<key>CFBundleHelpBookFolder</key>
<string>HungryMeHelp</string>
<key>CFBundleHelpBookName</key>
<string>com.DrummingGrouse.HungryMe.help</string>

着陆页,HungryMe.html 有:

<meta name="AppleTitle" CONTENT="com.DrummingGrouse.HungryMe.help"/>

我拖入项目的文件夹命名为:HungryMeHelp

帮助文件夹结构是:

HungryMeHelp/
Contents/
Info.plist
Resources/
shrd/ <shared artwork>
English.lproj/
HungryMe.html <title page>
HungryMe.helpindex
pgs/ <the rest of the content pages>
sty/ <style sheets, generated list template>
scrpt/ <scripts>

我有:

 0. Deleted /HungryMeHelp and re-added it.
1. Cleaned the project.
2. Reloaded Xcode
3. Rebooted Mac

在您的主页 > 图书馆 > 首选项文件夹中删除以下文件

com.apple.help.plist
com.apple.helpui.plist
com.apple.helpviewer.plist

在您的主页 > 图书馆 > 缓存文件夹中删除以下文件夹

com.apple.helpui folder
com.apple.helpdata
com.apple.helpd
com.apple.helpviewer

我错过了什么?

感谢阅读。标记

最佳答案

我在这里找到了 Apple Help Viewer Cache 问题的答案:

http://www.cocoabuilder.com/archive/cocoa/312037-updating-an-app-help.html http://macergun.blogspot.com/2011/06/dealing-with-help-viewer-cache.html

我在 cocoabuilder.com 上找到了下面的帖子结果,我从我的系统中删除了该应用程序的现有副本。帮助系统随后立即更新!


2011 年 12 月 13 日下午 5:17,Graham Cox 写道:

With each update of our app, we typically change the help book. We're finding that the system is very poor at recognising this and caches old versions of the help which causes new stuff we add to be unavailable. While I can manually trash the help caches and force an update, this isn't something we can ask or expect of our users.

搜索文件,您会发现您可能遇到了一个已经存在很长时间的众所周知的问题。它通常只会影响开发人员,不会影响您的用户。如果另一个较旧版本的应用程序仍在您的计算机上,在“应用程序”文件夹中,或者可能以仍然存在的早期构建产品的形式,这对开发人员来说尤其烦人,因为这会破坏帮助缓存并强制更新不一定会阻止系统在旧版本的应用程序中使用旧版本的帮助文件夹。

当我处理我的帮助文件夹时,我通常会在此期间将应用程序的所有旧版本压缩到 zip 文件中,并且在每次测试之前我会丢弃帮助缓存。

典型的用户在安装新版本时会丢弃旧版本的应用程序,但一切都很好。

--

比尔奇斯曼 -

关于html - Help Viewer 在哪里缓存文件? Mac Help Viewer 不显示最新版本的 HTML 文件。这工作了数周。怎么了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13542462/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com