V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
kyonoame
V2EX  ›  Apple

所以国内是没办法用 predictive code completion 的吗?

  •  2
     
  •   kyonoame · 13 天前 · 1651 次点击

    电脑和 Xcode 也安装了最新的 beta 版本,安装完 Xcode 弹出的那个下载 SDK 的弹窗不能勾选下载 Predictive code completion model ,跳过之后,在设置里面提示 Predictive code completion is not supported in this region. 尝试在系统设置把 region 改为美国,同时也打开全局模式,甚至于重启了,都还是一样提示不可用,所以是无解了吗

    19 条回复    2024-06-17 15:49:51 +08:00
    95276
        1
    95276  
       13 天前
    同问
    FangLing
        2
    FangLing  
       13 天前
    Predictive code completion requires a Mac with Apple silicon and 16GB of unified memory, running
    macOS 15. (116310768)
    FangLing
        3
    FangLing  
       13 天前
    @FangLing 回覆完了才看到「 not supported in this region 」。。。
    codgician
        4
    codgician  
       13 天前
    我的国行 mbp 在境外的网络环境下也有这个提示( apple news 等可以正常使用)…… 该不会是基于是否是国行设备特判的吧 qwq
    kyonoame
        5
    kyonoame  
    OP
       13 天前
    @codgician 绑定硬件的话就蛋疼了,而且由此预见之后手机的 AI...
    codgician
        6
    codgician  
       13 天前
    如果能找到一台能开启 predictive code completion 的 Mac 可以试试看 `defaults read com.apple.dt.Xcode` 查查 predictive code completion 对应的 config 键值是什么,然后可以试试用 `defaults write` 强开会怎样(虽然我不太抱希望 x
    CedricChanning
        7
    CedricChanning  
       13 天前 via iPhone
    @kyonoame 那真是令人失望
    kyonoame
        8
    kyonoame  
    OP
       13 天前
    @codgician 希望港行不会阉割吧😂
    marticztn
        9
    marticztn  
       13 天前   ❤️ 1
    @codgician 试了一下,唯一的区别就是:
    开启 predictive code 的文件:IDEModelAccessHasUserConsentForOnDeviceInteractions = 1;
    关闭 predictive code 的文件:IDEModelAccessHasUserConsentForOnDeviceInteractions = 0;
    codgician
        10
    codgician  
       13 天前
    @marticztn 太感谢了,我在我这里试了一下 `defaults write com.apple.dt.Xcode IDEModelAccessHasUserConsentForOnDeviceInteractions -bool true`,还是会有 not supported in this region 的提示。
    walkeryg
        11
    walkeryg  
       12 天前
    我也试了也是一样。有没有新的解决方案啊,我在想比如关了 SIP 改 opencore 或者 sku ,根本上断掉 mac 判断自己是国行电脑的依据,但是具体的应该怎么操作。。
    walkeryg
        12
    walkeryg  
       12 天前
    @codgician 目前看来就是
    neiltroyer849
        13
    neiltroyer849  
       12 天前
    无解。之前那个显示旗子大法估计也绕不过这个。
    neiltroyer849
        14
    neiltroyer849  
       12 天前
    关于 Xcode LLM 的 eligibilityd 限制规则被提取出来了,Model regions: Any except China SKU🙃 信息源: https://x.com/Blankwonder/status/1800724587132670405
    codgician
        15
    codgician  
       12 天前
    我用 hopper 逆了一下 eligibilityd 确实看到了 IsChinaSKU 的特判:![screenshot]( https://imgur.com/TJYq0JV)

    另外在 https://theapplewiki.com/wiki/Eligibility 可以查询到所有从 eligibilityd 里面逆出来的限制策略列表。
    neiltroyer849
        16
    neiltroyer849  
       11 天前
    @codgician 对的,看起来应该是直接硬件层面的限制
    codgician
        17
    codgician  
       11 天前
    @neiltroyer849 嗯,目前能想到的办法是 patch eligibilityd ,但这肯定需要关闭 SIP 以允许加载未经签名的代码(我觉得这有点得不偿失所以没有自己尝试)
    neiltroyer849
        18
    neiltroyer849  
       10 天前
    @codgician 是有点大炮轰蚊子的感觉也损失了很大的安全性。而且好像是不是 Apple Silicon 的 Mac 关了 SIP 之后就不能用 iOS app 了?
    walkeryg
        19
    walkeryg  
       7 天前 via iPhone
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4935 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:42 · PVG 13:42 · LAX 22:42 · JFK 01:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.