-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## <div align="center"><b><a href="README.md">English</a> | <a href="README_CN.md">简体中文</a></b></div> | ||
|
||
# 国行 Mac 使用 Xcode LLM的方法 | ||
|
||
在不禁用系统完整性保护 (SIP) 的情况下在国行 Mac 上使用 Xcode LLM 的方法。 | ||
|
||
对于需要禁用系统完整性保护 (SIP) 的旧方法,请参阅 "相关链接" 部分。 | ||
|
||
## 注意事项 | ||
|
||
## 使用方式 | ||
|
||
### 脚本执行 | ||
|
||
TODO | ||
|
||
### 手动执行 | ||
|
||
#### 方案一(推荐) | ||
|
||
在脚本执行期间需要临时禁用一次 SIP。 | ||
|
||
1. 在恢复模式下通过 `csrutil disable` 禁用 SIP 并重启。 | ||
2. 在发布页面中下载 `eligibility_util` 并执行 `eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_XCODE_LLM --answer 4` | ||
3. 在恢复模式下通过 `csrutil enable` 恢复 SIP 并重启。 | ||
|
||
> 如果你不熟悉 SIP 操作,请阅读 [Disabling and Enabling System Integrity Protection](https://developer.apple.com/documentation/security/disabling_and_enabling_system_integrity_protection)。 | ||
|
||
#### 方案二 | ||
|
||
完全不需要禁用 SIP。 | ||
|
||
1. 从发布页面下载 `eligibility_overrides.data` 文件 | ||
2. 在`~/Library/Daemon Containers/<UUID>`下找到`eligibilityd`的正确容器路径 | ||
3. 将下载的文件移动到相应的 Deamon 容器的 `Data/Library/Caches/NeverRestore/` 文件夹中。如果您不确定哪个是 eligibilityd 的容器目录,您可以一个一个地尝试,或者将下载的文件添加到所有 Deamon 容器中。 | ||
|
||
## 相关链接 | ||
|
||
- https://gist.github.com/Kyle-Ye/4ad1aa92df3a31bd812487af65e16947 | ||
- https://gist.github.com/unixzii/6f25be1842399022e16ad6477a304286 | ||
|
||
## 版权信息 | ||
|
||
MIT。详见 LICENSE 文件。 |