Skip to content

Permanent Apple Intelligence + Xcode Predictive Code Completion for Chinese-market Mac computers

License

Notifications You must be signed in to change notification settings

CatMe0w/zouxian

Repository files navigation

zouxian 走线

中文版请见这里

Apple restricted the access to Apple Intelligence and Xcode LLM (Predictive Code Completion) feature on China models of Mac. That is, if you are using a Mac bought in China, even if you are not in China, you will not be able to use Apple Intelligence or Xcode Predictive Code Completion.

If you are unfortunate to be in this situation, now it is time take your Mac on a journey of Zouxian.


Persistent solution after rebooting, based on Cyandev's guide.

Version table

From To
Macintosh System 1 14.6 (23G80) Not applicable
15.0 Beta 1 (24A5264n) 15.3.1 (24D70) Install Darwin Eligibility Override
15.4 Beta 1 (24E5206s) ? Install zouxian

Disclaimer

Disabling SIP will reduce the security of the system and make iOS apps in App Store and Apple Pay unusable.

Install

Prerequisites

  • SIP debugging restrictions are disabled (via csrutil enable --without debug command in recovery mode).
  • For Apple Intelligence: A non-China Apple ID signed in, region set to the United States, and language set to English (US).
  • For Xcode Predictive Code Completion: Xcode is installed and run at least once.

Note

No need to install Xcode if you only want to use Apple Intelligence.

Method 1: Via Homebrew

brew install catme0w/tap/zouxian
sudo brew services start zouxian

Check out the formula if you're interested

Method 2: Manually

sudo curl https://raw.githubusercontent.com/CatMe0w/zouxian/master/zouxian.sh -o /usr/local/bin/zouxian
sudo chmod +x /usr/local/bin/zouxian
sudo curl https://raw.githubusercontent.com/CatMe0w/zouxian/master/cat.me0w.zouxian.plist -o /Library/LaunchDaemons/cat.me0w.zouxian.plist
sudo launchctl load -w /Library/LaunchDaemons/cat.me0w.zouxian.plist

Uninstall

If Installed Via Homebrew

sudo brew services stop zouxian
sudo rm -rf /opt/homebrew/Cellar/zouxian
brew untap catme0w/tap

If Installed Manually

sudo launchctl unload -w /Library/LaunchDaemons/cat.me0w.zouxian.plist
sudo rm /Library/LaunchDaemons/cat.me0w.zouxian.plist
sudo rm /usr/local/bin/zouxian

Acknowledgement

Thanks for those who make this possible together: Kyle-Ye, Cyandev, Lakr233, Sou1gh0st, Yuriko.

License

MIT License

About

Permanent Apple Intelligence + Xcode Predictive Code Completion for Chinese-market Mac computers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages