Kyle-Ye / XcodeLLMEligible

MIT License
1.11k stars 66 forks source link

Mac Mini Fails to Unlock AI on macOS 15.1 beta #11

Closed owenzhao closed 2 months ago

owenzhao commented 2 months ago

Additional Information

Mac Mini China。 macOS 15.1 beta。

The AI features already worked with Xcode. But even after I changed the region, language, and Siri language to US/English/English, I still don’t have AI on macOS. As my developer account is Chinese, I can’t log in with an English Apple ID—the iCloud sync database would be too inconvenient to debug that way.

So I created a new account, also set the region, language and Siri preferences there, then logged in with my US Apple ID. Still not working.

The final straw was running the cracking program without disabling SIP in my new account, then rebooting and still not getting AI on macOS.

I’m at a loss for what to do next, so I’ll share my experience here and see if anyone has any insights into where I might have gone wrong.

Kyle-Ye commented 2 months ago

Have no time to study the waitlist logic yet.

This tool can only help to circumstance the local OS check.

Some direction I may do later:

Gawain12 commented 2 months ago

Device: M2 Macbook Air 15.3 inch, 16G+256G OS: 15.1 beta

Same here, I'm using the US region, language, and the US Apple ID, rebooting many times, still does not work.

image image image image

I’ve tried both script and manual installation. They all indicate that the installation was successful. I have no idea what to do if I missed anything.

(Not sure if it matters, I clicked About System Setting It shows Version 15.0 (15.0) instead of 15.1

Kyle-Ye commented 2 months ago

@Gawain12

The script is for Xcode LLM.

Could you confirm the result of running ./eligibility_util getDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER?

If it is not OS_ELIGIBILITY_ANSWER_ELIGIBLE, please run ./eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4 to unlock the local limitation.

Gawain12 commented 2 months ago

@Gawain12

The script is for Xcode LLM.

Could you confirm the result of running ./eligibility_util getDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER?

If it is not OS_ELIGIBILITY_ANSWER_ELIGIBLE, please run ./eligibility_util forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4 to unlock the local limitation.

Thanks for pointing that out! I didn't notice that in the manual installation I was also using OS_ELIGIBILITY_DOMAIN_XCODE_LLM. After changing it to OS_ELIGIBILITY_DOMAIN_GREYMATTER, it works now!

(Just noticed someone already made the same mistake in a closed issue

Kyle-Ye commented 2 months ago

So I created a new account, also set the region, language and Siri preferences there, then logged in with my US Apple ID. Still not working.

Hi @owenzhao , I'm trying to reproduce your issue here.

Please check the latest README and tell me which of the steps best describes your situation?

owenzhao commented 2 months ago

Got an error.

SIP disabled.

The account I login was a normal account, not admin.

aiuser@zhaoxins-Mac-mini-M1 Downloads % ./eligibility_util_sip getDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER
OS_ELIGIBILITY_ANSWER_NOT_ELIGIBLE
aiuser@zhaoxins-Mac-mini-M1 Downloads % ./eligibility_util_sip forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4
Force domain answer failed: errorNum 54
aiuser@zhaoxins-Mac-mini-M1 Downloads % sudo ./eligibility_util_sip forceDomainAnswer --domain-name OS_ELIGIBILITY_DOMAIN_GREYMATTER --answer 4 
Password:
Sorry, try again.
Password:
Force domain answer failed: errorNum 54
aiuser@zhaoxins-Mac-mini-M1 Downloads % 
owenzhao commented 2 months ago

I don't know what the error number 54 means.

I came across a tweet mentioning that the Apple AI function in macOS would be activated, but with a caveat: it requires macOS to be installed on the internal SSD. Currently, my macOS installation is on an external SSD.

After backing up my data, I intend to upgrade to an internal SSD to potentially access this new functionality.

owenzhao commented 2 months ago

Update me on your current situation.

I have installed macOS 15.1 beta on my internal SSD, but I am still getting the same error 54 issue. However, I noticed that while manual installation results in errors, script-based installation is successful. This suggests that there might be missing or incorrectly formatted steps in the manual installation process.

I encountered new issues during the application process for Apple's AI program.

I was able to see the application for Apple's AI program on my Chinese Apple ID, but after clicking on it, I still found myself in an unsubmitted status. Then, upon creating a new account with no connection to any Apple IDs and applying, I managed to submit the application successfully. However, despite having submitted it half an hour ago, it hasn't been approved yet. Finally, running the automated installation script on my external SSD resulted in success, allowing me to proceed without issues. When trying to apply from an account with a US-based Apple ID, it showed that I had already applied. Therefore, I am uncertain whether the application process is tied to the Apple ID or the device itself.

owenzhao commented 2 months ago

Got it!

Screenshot 2024-08-02 at 10 46 48 AM
Kyle-Ye commented 2 months ago

Got an error.

SIP disabled.

errorNum 54 means you do not have the permission here.

See https://github.com/Kyle-Ye/eligibility/blob/8d524089df1341b186852a3eee4b951f0a7502da/eligibilityd/main.m#L206-L210

eligibility_util_sip removes such entitlement so that it can be run on SIP enabled device. And it can only perform "getDomainAnswer" related command.

Disable SIP and use eligibility_util to resolve the issue.

This suggests that there might be missing or incorrectly formatted steps in the manual installation process.

No. They are the same. The script just performs method 1 or method 2 automatically according to your status. (SIP disable + boot-args -> Method 1. Otherwise method 2)