调试帮助书(“所选主题​​当前不可用") [英] Debugging Help Book ("The selected topic is currently unavailable")

查看:120
本文介绍了调试帮助书(“所选主题​​当前不可用")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对-如此,我创建了一个帮助书,做了

Right - so I've created a help book, did all the right things, double-checked my plist and index.html files, and all I get is the notorious

所选主题当前不可用.

The selected topic is currently unavailable.

尝试打开帮助书时,控制台中唯一的条目是普通

The only entry in Console when attempting to open the help book is a plain

3/8/15 1:23:42.467 PM HelpViewer[35015]: Couldn't find book with this ID: (null)

不太有帮助.

从这里去哪里?
Apple帮助是否有任何调试技术?
登录可以打开吗?什么..?

Where to go from here?
Are there any debugging techniques for Apple Help?
Logging to turn on? Anything..?

推荐答案

仅用了几个小时就遇到了同样的问题.

Just struggled a few hours with the same problem.

ID: (null)表示您缺少CFBundleNameHPDBookTitle键,或者CFBundleName不正确.您应该在HelpViewer日志中正常看到捆绑包标识符.

The ID: (null) means that you are missing CFBundleName or HPDBookTitle keys, or CFBundleName is incorrect. You should see your bundle identifier in HelpViewer logs normally.

在确保我的帮助书Info.plist文件至少配置了以下六个键后,它才能正常工作:

Got it working after I made sure, that my help book Info.plist file has at least these six keys configured:

...
<key>CFBundleIdentifier</key>
<string>com.company.project.help</string>

<key>CFBundleName</key>
<string>ProjectHelp</string>

<key>HPDBookAccessPath</key>
<string>index.html</string>

<key>HPDBookIconPath</key>
<string>icon.png</string>

<key>HPDBookTitle</key>
<string>Project Help</string>

<key>HPDBookType</key>
<string>3</string>
...

和主项目Info.plist文件包含以下记录:

and the main project Info.plist file contains these records:

...
<key>CFBundleHelpBookFolder</key>
<string>ProjectHelp.help</string>

<key>CFBundleHelpBookName</key>
<string>com.company.project.help</string>
...

这假设您有一个ProjectHelp.help目标,该目标已复制到主项目的Resources文件夹中.

This assumes that you have a ProjectHelp.help target which is copied into main project Resources folder.

然后构建一个发布方案,并将您的项目.app文件复制到Applications文件夹中.之后,我的帮助书开始工作.是的,将签名的.app安装到Applications文件夹后.

Then build a Release scheme and copy your project .app file to Applications folder. After that I got my help book working. Yes, after installing the signed .app into Applications folder.

如果您仍然无法使用HelpViewer程序缓存,也可以尝试清除它.在此处

You could also try to clear HelpViewer program caches if it still doesn't work. HelpViewer reset described here

这篇关于调试帮助书(“所选主题​​当前不可用")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆