特别好的工具。我之前在windows上用的是STranslate,也希望能支持mdd格式的字典,本地查询总要比起问AI更快一些,这个工具完美解决了痛点。感谢楼主!
往下滚动进度条直到出现第二个词典的解释。此处UI需要优化,下版本补一下
。
没有AI不快 ![]()
已复现,修复中。
手上没有iPhone,我先按这个改一下看能不能解决。
我这个是谷歌最傻那个AI写的,估计不行。然后我问一下ChatGPT吧。
Yes — your diagnosis is basically correct, but there is an important distinction: this is not really an iOS privacy permission problem. It is a Tauri ACL (Access Control List) configuration problem inside the app.
The error in your screenshot is extremely specific:
Command plugin:dialog|open not allowed by ACL
That means the JavaScript side of the Tauri app is trying to call the Tauri Dialog plugin’s open command, but the app’s security configuration has not granted that command permission.
1. The immediate problem: dialog:allow-open
Tauri v2 uses a capability/permission system. The Dialog plugin has a permission called:
dialog:allow-open
and Tauri’s documentation explicitly says this permission enables the open command. The Dialog plugin’s default permission set also includes allow-open. (Tauri)
So if this is your Tauri application/source code, the developer needs to add something like this to the appropriate capability file:
{
"$schema": "../gen/schemas/mobile-schema.json",
"identifier": "mobile",
"description": "Mobile capabilities",
"windows": ["main"],
"platforms": ["iOS", "android"],
"permissions": [
"core:default",
"dialog:allow-open"
]
}
Or, more simply, the capability could use:
"permissions": [
"core:default",
"dialog:default"
]
because dialog:default includes dialog:allow-open. (Tauri)
The exact location is normally something like:
src-tauri/
capabilities/
default.json
mobile.json
The important thing is that the capability that applies to the iOS build must contain the Dialog permission. Tauri allows capabilities to be platform-specific, including "iOS" and "android". (Tauri)
2. But there is a second, potentially bigger problem
This is the part I think is particularly important for your AALookup application.
You said:
“It won’t pop up the window to choose a folder.”
If the application is actually trying to let you choose a folder, then fixing the ACL may not be sufficient.
The current Tauri Dialog plugin documentation explicitly says:
iOS does not support folder picker.
The same limitation exists on Android. (Tauri)
Tauri’s open() API has two relevant options:
open({
directory: true
})
means choose a directory/folder.
Whereas:
open({
directory: false,
multiple: true
})
means choose one or multiple files. (Tauri)
So there are actually two separate issues to investigate:
| Problem | What it means | Fix |
|---|---|---|
plugin:dialog|open not allowed by ACL |
Tauri won’t even allow the app to invoke the file picker | Add dialog:allow-open |
directory: true on iOS |
Tauri Dialog doesn’t implement folder picking on iOS | Change the design to select files, or implement native iOS folder picking |
3. For AALookup, selecting files is probably the right solution
Looking at your screenshot, the application says:
“Add an MDic file you already have.”
and:
“Download the four-file WordNet example…”
That makes me suspect the intended operation is actually selecting dictionary files, rather than selecting an arbitrary folder.
If so, the developer should probably implement something along the lines of:
const selected = await open({
multiple: true,
directory: false,
pickerMode: "document",
filters: [
{
name: "Dictionary files",
extensions: ["mdx", "mdd"]
}
]
});
The exact extensions would depend on what AALookup expects.
Tauri’s current API supports pickerMode: "document" specifically for mobile platforms such as iOS, and its iOS implementation returns file:// URIs for selected files. (GitHub)
That is a much better fit for iPhone/iPad than trying to expose a traditional desktop-style folder picker.
4. So if you’re just using the app, you cannot fix this in iOS Settings
This is the key point.
You don’t need to go to Settings → Privacy → Files or give AALookup some missing iOS permission.
The failure occurs before iOS gets a chance to display the picker.
Think of the sequence as:
You tap "Import dictionary files..."
↓
AALookup JavaScript calls
@tauri-apps/plugin-dialog → open()
↓
Tauri ACL checks
↓
❌ permission denied
↓
iOS file picker never opens
Your screenshot is essentially showing us the failure at the ACL check stage.
Tauri’s security model intentionally blocks plugin commands unless they have been granted through the application’s capabilities. (Tauri)
So if you’re just an end user, this is an AALookup bug that the developer needs to fix.
If you’re building AALookup yourself, then I would fix it in this order:
Fix #1 — ACL
Add:
"dialog:allow-open"
to the iOS capability.
Fix #2 — iOS picker mode
If the code currently has:
open({
directory: true
})
change the design so iOS uses:
open({
directory: false,
multiple: true,
pickerMode: "document"
})
if the goal is to import multiple dictionary files.
Fix #3 — If you genuinely need a folder
Then the standard Tauri Dialog plugin isn’t enough on iOS, because its folder picker isn’t supported there. The developer would need to implement an iOS-specific native document/folder picker or redesign the import workflow. (Tauri)
So your instinct was right about “permission,” but the precise diagnosis is: Tauri ACL permission, not iOS user permission. And there may additionally be an iOS folder-picker compatibility problem.
If you have the AALookup GitHub repository/source code, give me the link and I can look at the actual Tauri configuration and tell you exactly which file and which lines need to be changed.
期待新版本能自由选择想查看的词典。另外,已经在App Store上架了吗?
核心功能需要Accessibility权限(用于直接读取文字)和Screen Record权限(用于OCR读游戏之类的),上架不了App Store。预计把功能阉割了以后能上。
啊这也是我迷惑的一点:iOS本身没有文件系统,只能选择iCloud和照片,或在微信/网盘里面点击发送到外部应用。然后AALookup对此的设计是移动端通过拷贝的方式,放到本地文件里面。
不过现在我在Android上面实测了一下遇到几个问题:
- 移动端解析大词典的词典entry速度太慢了,我有一个大约3G的词典,解析一次要5秒以上,每次打开App都得重新解析。 需要优化,优化又要额外占缓存。
- 移动端获取Accessibility的方法和桌面端差异太大,而且几乎不可能上App Store/Play商店。所以只有词典功能。
- 移动端的权限设计太复杂了,新手引导可能得多做几个版本。
现在就是能自由选择的,我没想到直接平铺会造成那么大的误解,我会优化一下交互。
就算只有词典功能,已经是非常好了。我觉得现在iOS上的词典都没有好用的。你这个,就算不提 点译 这个功能,界面让人觉得很惊艳。 而且我装的时候,我看到了这个词典其实有那个分享查词功能,就是从别的软件也可以通过分享传到这个词典查词。我觉得这个功能就可以了,我就可以用这个词典在别的程序里面查词了。 我先试一下自带词典,怎么样?我还没有试。
对,iOS上有分享的入口。
示例词典是WordNet的英英词典,我自己觉得不太行,但是暂时找不到更好的替代品。
我的想法是时机合适的时候我用AI洗一本真正排版现代又精简实用的词典作为默认选项。
还是等我拿个iOS手机调一下吧,我现在只在macOS的模拟器上调了,好多体验似乎都不一致。
提一个小问题,就是有的词在一些词典中分别标有1或2表示词的不同义项,比如plight这个词,单独查只能查出来plight ^1 , 不能查出plight ^2 ,希望可以修正一下,查plight的时候一起显示 plight ^1 和 plight ^2 的解释。
词典路径的字体好像不太美观,和软件界面上的其他字体不太一样:
感觉这个软件很轻量,同时加载两千本以上词典应该不会有卡顿吧,各词库之间的样式不会打架吧?目前GD-ng和GD的样式隔离做的不好,总是有词典之间互相干扰,甚至词典分组内会有很多词典直接不加载。
发现这本辞海第七版(辭海 seven edition 所有数据 - #183,来自 jeanleem6 )加载的内容不全:
GD-ng上效果如下,后面还有个在线视频:








