From aa7b171774b41ca0c9fae1ab55b91ef6c0cf96ad Mon Sep 17 00:00:00 2001 From: doublex001 <16157008+doublex001@user.noreply.gitee.com> Date: Fri, 11 Sep 2026 17:20:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E7=A7=BB=E9=99=A4=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=20updates=20=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20Expo=20Go=20=E5=90=AF=E5=8A=A8=E8=93=9D=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:app.config.js 中 updates.url 为占位符 https://u.expo.dev/REPLACE_WITH_PROJECT_ID, Expo Go 启动时 expo-updates 会按该地址拉取远程更新,必然超时失败 (Failed to download remote update / UpdateFailedToLoad)→ ErrorActivity 蓝屏。 修复:开发期移除该占位块(注释保留 + eas init 后注入说明)。 运行时验证:expo-updates 变为 disabled(warn),ExperienceActivity 正常渲染, JS 层无错误日志。 --- app.config.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app.config.js b/app.config.js index 3e33eae..6d49a6f 100644 --- a/app.config.js +++ b/app.config.js @@ -24,11 +24,13 @@ export default { policy: 'appVersion', }, // EAS Update(OTA 热更新)通道与端点。 - // url 中的 PROJECT_ID 在 `eas init` 后由 EAS 注入(见 extra.eas.projectId)。 - updates: { - url: 'https://u.expo.dev/REPLACE_WITH_PROJECT_ID', - channel: 'production', - }, + // 注意:占位的 REPLACE_WITH_PROJECT_ID 会让 Expo Go(开发期)启动时去拉取 + // 不存在的远程更新,报 “Failed to download remote update” 并蓝屏。 + // 运行 `eas init` 后由 EAS 注入真实地址;开发期(Expo Go)请勿保留此块。 + // updates: { + // url: 'https://u.expo.dev/', + // channel: 'production', + // }, ios: { supportsTablet: true, // iOS Bundle Identifier:上架 App Store 的唯一标识,按你的开发者账号命名。