You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React Native Expo用EAS Build构建iOS失败:部分Pods需更高部署目标

EAS Build构建React Native Expo iOS应用失败:Pods要求更高的最低部署目标

✖ Build failed
🍏 iOS build failed:
Some pods require a higher minimum deployment target.
You need to manually update the minimum deployment target in your project to resolve this issue.

以下是我的app.json文件:

{
  "expo": {
    "userInterfaceStyle": "automatic",
    "android": {
      "package": "com.indhra.teoro"
    },
    "name": "Teoro",
    "icon": "./assets/images/Logo.png",
    "newArchEnabled": true,
    "jsEngine": "hermes",
    "splash": {
      "image": "./assets/images/Logo.png",
      "resizeMode": "contain",
      "backgroundColor": "#C2E96A"
    },
    "ios": {
      "bundleIdentifier": "",
      "deploymentTarget": "13.0"
    },
    "scheme": "teoro",
    "extra": {
      "eas": {
        "projectId": ""
      }
    }
  }
}

已尝试的操作

  • 更新app.json中的deploymentTarget:设置为"deploymentTarget": "13.0",但错误仍存在。
  • 检查依赖项:不确定哪些依赖需要更高的iOS版本,不知道如何排查。

解决方案

1. 提升部署目标版本

13.0的部署目标可能仍不满足部分Pods要求,尝试逐步提升至14.0或15.0,修改app.json中的对应配置:

"ios": {
  "bundleIdentifier": "",
  "deploymentTarget": "14.0"
}

保存后重新执行EAS Build。

2. 排查具体依赖的版本要求

  • 本地生成iOS原生项目:执行eas build:configure生成ios目录,打开ios/Podfile查看每个Pod的platform要求;或执行pod install --verbose,终端会输出具体哪个Pod要求更高的部署目标。
  • 核对依赖文档:执行npm list或yarn list列出所有依赖,逐个查看第三方库的README,确认其最低iOS版本要求。

3. 强制统一Pod部署目标

若不想逐个排查,可在项目根目录创建eas.json,添加iOS构建配置强制所有Pods使用统一部署目标:

{
  "build": {
    "production": {
      "ios": {
        "podsDeploymentTarget": "14.0"
      }
    }
  }
}

该配置会覆盖所有Pods的最低版本要求,统一使用你指定的版本。

内容的提问来源于stack exchange,提问作者Lucky Govind rao

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 13:31:03