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

17 天前
 kyonoame

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

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

另外在 https://theapplewiki.com/wiki/Eligibility 可以查询到所有从 eligibilityd 里面逆出来的限制策略列表。
neiltroyer849
15 天前
@codgician 对的,看起来应该是直接硬件层面的限制
codgician
14 天前
@neiltroyer849 嗯,目前能想到的办法是 patch eligibilityd ,但这肯定需要关闭 SIP 以允许加载未经签名的代码(我觉得这有点得不偿失所以没有自己尝试)
neiltroyer849
14 天前
@codgician 是有点大炮轰蚊子的感觉也损失了很大的安全性。而且好像是不是 Apple Silicon 的 Mac 关了 SIP 之后就不能用 iOS app 了?
walkeryg
11 天前

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1048675

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX