Xcode 4.5.2 Mountain Lion,Mac App
我准确地遵循了文档.帮助文件夹及其子文件夹将添加到项目/资源文件夹中,并显示为蓝色.
如有必要,xcode添加文件夹引用.
无论是在Xcode中查看HTML文件还是在文本编辑器中外部查看,我都会看到该文件的新版本.
在应用程序内部,帮助页面全部显示,锚点工作,但页面是旧版本.
未以最新版本显示的特定文件是DgxFiles.html.它位于下面的方案中为../pgs/DgxFiles.html.
当我在应用程序中访问帮助时,我看到了HTML文件的旧版本.似乎旧的帮助文件缓存在某处.
App的Info.plist有
<key>CFBundleHelpBookFolder</key>
<string>HungryMeHelp</string>
<key>CFBundleHelpBookName</key>
<string>com.DrummingGrouse.HungryMe.help</string>
Run Code Online (Sandbox Code Playgroud)
登陆页面HungryMe.html具有:
<meta name="AppleTitle" CONTENT="com.DrummingGrouse.HungryMe.help"/>
Run Code Online (Sandbox Code Playgroud)
我拖入项目的文件夹名为: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>
Run Code Online (Sandbox Code Playgroud)
我有:
0. Deleted /HungryMeHelp and re-added it.
1. Cleaned the project.
2. Reloaded Xcode
3. Rebooted Mac
Run Code Online (Sandbox Code Playgroud)
在主页>库>首选项文件夹中删除以下文件
com.apple.help.plist
com.apple.helpui.plist
com.apple.helpviewer.plist
Run Code Online (Sandbox Code Playgroud)
在主页>库>缓存文件夹中删除以下文件夹
com.apple.helpui folder
com.apple.helpdata
com.apple.helpd
com.apple.helpviewer
Run Code Online (Sandbox Code Playgroud)
我错过了什么?
谢谢阅读.标记