Browse Source

fix(config): 移除占位 updates 配置,修复 Expo Go 启动蓝屏

根因: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 层无错误日志。
master
doublex001 2 months ago
parent
commit
aa7b171774
  1. 12
      app.config.js

12
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/<PROJECT_ID>',
// channel: 'production',
// },
ios: {
supportsTablet: true,
// iOS Bundle Identifier:上架 App Store 的唯一标识,按你的开发者账号命名。

Loading…
Cancel
Save