Skip to content

Instantly share code, notes, and snippets.

@Kyle-Ye
Last active September 19, 2025 01:31
Show Gist options
  • Save Kyle-Ye/4ad1aa92df3a31bd812487af65e16947 to your computer and use it in GitHub Desktop.
Save Kyle-Ye/4ad1aa92df3a31bd812487af65e16947 to your computer and use it in GitHub Desktop.

Revisions

  1. Kyle-Ye revised this gist Jul 1, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -58,4 +58,4 @@ Reboot and open Xcode. That's all. Done.

    If this is not work for you, you can also give a look at [unixzii's solution](https://gist.github.com/unixzii/6f25be1842399022e16ad6477a304286)

    - https://github.com/Kyle-Ye/eligibilityd
    If you are interested in eligibilityd, you can also take a look at https://github.com/Kyle-Ye/eligibilityd
  2. Kyle-Ye revised this gist Jul 1, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -56,4 +56,6 @@ Reboot and open Xcode. That's all. Done.

    - [Lakr233](https://github.com/Lakr233) and [unixzii](https://github.com/unixzii)

    If this is not work for you, you can also give a look at [unixzii's solution](https://gist.github.com/unixzii/6f25be1842399022e16ad6477a304286)
    If this is not work for you, you can also give a look at [unixzii's solution](https://gist.github.com/unixzii/6f25be1842399022e16ad6477a304286)

    - https://github.com/Kyle-Ye/eligibilityd
  3. Kyle-Ye revised this gist Jun 17, 2024. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -49,4 +49,11 @@ Lock the `eligibility.plist` file to prevent `eligibilityd` changing it again.

    Reboot and open Xcode. That's all. Done.

    > Click the "Predictive code completion" on Xcode and then it will tirgger a popup to download the LLM model.
    > Click the "Predictive code completion" on Xcode and then it will tirgger a popup to download the LLM model.

    ### Acknowlegement

    - [Lakr233](https://github.com/Lakr233) and [unixzii](https://github.com/unixzii)

    If this is not work for you, you can also give a look at [unixzii's solution](https://gist.github.com/unixzii/6f25be1842399022e16ad6477a304286)
  4. Kyle-Ye revised this gist Jun 16, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,11 @@ csrutil disable

    ### Step 1

    ```
    # Remove IDEModelAccessOnDeviceAvailabilityOverride if you have watched my tweet before
    defaults delete com.apple.dt.Xcode IDEModelAccessOnDeviceAvailabilityOverride
    ```

    ```
    # Clear old eligibilityd cache
    sudo rm -rf /private/var/db/eligibilityd
  5. Kyle-Ye revised this gist Jun 16, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    > [!Warning]
    > The following guide need SIP disable to work.
    > The following guide need to disable SIP to work.
    >
    > Please confirm the risk of disabling the SIP by yourself.
    >
  6. Kyle-Ye revised this gist Jun 16, 2024. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    > [!Warning]
    > The following guide need SIP disable to work.
    >
    > Please confirm the risk of disabling the SIP by yourself.
    >
    > Another solution which does not require disabling SIP is currently under investigation.
    ### Step 0

    Reboot into Recovery OS + Disable SIP
  7. Kyle-Ye revised this gist Jun 16, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,8 @@ sudo vim /private/var/db/os_eligibility/eligibility.plist
    # You need to change them to 1, 4, 3, 3
    ```

    > For the meaning of the numbers, you can check out https://x.com/KyleSwifter/status/1802405373133099475 or eligibilityd repo which I will open source later.
    ### Step 2

    Lock the `eligibility.plist` file to prevent `eligibilityd` changing it again.
  8. Kyle-Ye created this gist Jun 16, 2024.
    38 changes: 38 additions & 0 deletions XcodeLLM.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    ### Step 0

    Reboot into Recovery OS + Disable SIP
    ```
    csrutil disable
    ```

    ### Step 1

    ```
    # Clear old eligibilityd cache
    sudo rm -rf /private/var/db/eligibilityd
    # Lauch Xcode to tirgger a new record
    /Applications/Xcode-16.0.0-Beta.app/Contents/MacOS/Xcode
    ```

    Use vim in terminal or VSCode to change eligibility.plist (Need root permission)

    ```
    sudo vim /private/var/db/os_eligibility/eligibility.plist
    # Go to OS_ELIGIBILITY_DOMAIN_XCODE_LLM field
    # The normal value are 1, 2, 3, 2
    # You need to change them to 1, 4, 3, 3
    ```

    ### Step 2

    Lock the `eligibility.plist` file to prevent `eligibilityd` changing it again.

    1. `cd /private/var/db/eligibilityd && open .`
    2. ⌘+I on `eligibility.plist` file
    3. In `Sharing & Permissions` section, unlock and then set system's privilege to "Read only" too.

    ### Step 3

    Reboot and open Xcode. That's all. Done.

    > Click the "Predictive code completion" on Xcode and then it will tirgger a popup to download the LLM model.