Apple restricted the access to Xcode LLM (Predictive code completion) feature on China models of Mac. This guide provides a way to bypass that restriction. It's verified on macOS 15.0 Beta (24A5264n), but there is no guarentee that it will always work on later macOS versions.
- Xcode is installed and run at least once.
- SIP debugging restrictions are disabled (via
csrutil enable --without debug
command in recovery mode).