EAS Updates无法正常工作,疑因Expo.plist缺失channel-name
解决EAS Updates中Expo.plist缺少channel-name的问题
- 先升级到最新版EAS CLI,旧版本可能存在channel信息同步到Expo.plist的bug。执行
eas update:configure重新配置更新,这个命令会自动补全Expo.plist里的缺失字段。 - 如果自动配置没生效,手动给iOS项目的Expo.plist添加以下键值对:
注意字符串要和你eas.json里配置的channel名称完全一致,之后重新构建iOS应用。<key>channel-name</key> <string>staging-1863</string> - 确认构建时指定了正确的profile,比如执行
eas build --profile staging-1863 --platform ios,避免因profile未正确指定导致channel信息未注入。 - 用
eas channel:list检查目标channel是否存在,且和build profile关联正确。如果channel不存在,先执行eas channel:create staging-1863创建对应channel。
你的eas.json配置是正确的,格式化后如下:
{ "build": { "staging-1863": { "channel": "staging-1863", "env": { "ENVIRONMENT": "staging" }, "android": { "buildType": "apk", "credentialsSource": "local" }, "ios": { "credentialsSource": "local" } } } }
内容的提问来源于stack exchange,提问作者Ioana C.
相关产品推荐
相关产品推荐

