macOS 下无法访问本地规则文件(TestFlight 沙盒限制)
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 38.1k
- Forks
- 4.6k
- Avg merge
- 19d 15h
- Merged PRs (30d)
- 1
Description
环境
- macOS 版本:14.8.4
- sing-box GUI 版本:TestFlight 版
- sing-box 核心版本:1.14.0-alpha.3
问题描述
在 macOS 上使用 sing-box GUI(TestFlight 版本)时,无法访问本地规则文件。
报错信息:
Failed to fetch last disconnect error
(packet-tunnel) error: start service: initialize router: parse rule-set[2]:
open /Users/tangtang/code/sing-box/proxy-rules/sb-rules/my-emby-cn.json: operation not permitted
已尝试的方法
- 在系统偏好设置中给予了“完全磁盘访问”
- 确认文件权限正确,可读
- 文件路径存在且正确
但是都没有用。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the TestFlight failure using the reported local rule-set path and the packet-tunnel startup path. Start by tracing the router initialization at the point where rule-set[2] is opened, then determine how the macOS sandbox affects that access. Done means the local rule file can be used successfully in the TestFlight build, or the supported limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, macos
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100