执行EAS Build时遇iOS Bundle Identifier配置缺失错误求助
解决EAS Build iOS Bundle Identifier配置错误
问题描述
执行eas build时出现以下错误:
📝 iOS Bundle Identifier Learn more: https://expo.fyi/bundle-identifier
CommandError: Input is required, but 'npx expo' is in non-interactive mode.
Project must have aios.bundleIdentifierset in the Expo config (app.json or app.config.js).
Error: Unknown error. See logs of the Prebuild build phase for more information.
解决方案
配置iOS Bundle Identifier
在项目根目录的app.json或app.config.js中添加ios.bundleIdentifier字段,格式需为反向域名(如com.yourcompany.yourapp):app.json示例:
{ "expo": { "ios": { "bundleIdentifier": "com.yourdomain.yourappname" } } }app.config.js示例:
export default { expo: { ios: { bundleIdentifier: "com.yourdomain.yourappname" } } };排查Prebuild阶段未知错误
若配置后仍报错,前往EAS Build控制台找到对应构建任务,查看Prebuild阶段的日志输出,定位具体错误(如依赖缺失、配置冲突等)后针对性修复。重新执行构建
完成配置与错误修复后,重新运行:eas build
内容的提问来源于stack exchange,提问作者tonynnabs
相关产品推荐
相关产品推荐

