admin管理员组

文章数量:1389808

I'm developing an app for iOS using Expo, React Native, Firebase, and JavaScript. While the development build works flawlessly (npx eas-cli build --profile development --platform ios ), I encounter a problem when creating a production build for TestFlight or the App Store. (npx eas-cli build --platform ios --profile production) The building process fails every time on "run fastlane".

BUT: If I just build for production with my app being only a blank page saying "hello world", the build is successful and i can push the rest of my app (src folder) to testflight with npx eas update :)

There are no errors in the XCode logs, only warnings Fastlane fails on the exact same line every time

Environment: Expo, React Native, Firebase, JavaScript, Ios

Request for Help I'm seeking advice or any suggestions on how to resolve this issue. Any insights or guidance would be greatly appreciated.

Feel free to ask for more details if needed.

Package.json:

{
  "name": "tool",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "@babel/preset-env": "^7.26.9",
    "@babel/runtime": "^7.26.9",
    "@expo/config-plugins": "^9.0.16",
    "@expo/prebuild-config": "^8.0.28",
    "@react-native-async-storage/async-storage": "1.23.1",
    "@react-native-community/datetimepicker": "8.2.0",
    "@react-native-community/slider": "4.5.5",
    "@react-native-firebase/analytics": "^21.12.0",
    "@react-native-firebase/app": "^21.12.0",
    "@react-native-firebase/auth": "^21.12.0",
    "@react-native-firebase/firestore": "^21.12.0",
    "@react-native-firebase/messaging": "^21.12.0",
    "@react-navigation/bottom-tabs": "^7.2.1",
    "@react-navigation/native": "^7.0.15",
    "@react-navigation/stack": "^7.1.2",
    "axios": "^1.8.1",
    "d3-scale": "^4.0.2",
    "date-fns": "^4.1.0",
    "depcheck": "^1.4.7",
    "expo": "~52.0.38",
    "expo-application": "~6.0.2",
    "expo-asset": "~11.0.4",
    "expo-auth-session": "~6.0.3",
    "expo-av": "~15.0.2",
    "expo-build-properties": "~0.13.2",
    "expo-constants": "~17.0.8",
    "expo-dev-client": "~5.0.13",
    "expo-device": "~7.0.2",
    "expo-haptics": "~14.0.1",
    "expo-notifications": "~0.29.14",
    "expo-status-bar": "~2.0.1",
    "expo-store-review": "~8.0.1",
    "expo-updates": "~0.27.3",
    "expo-web-browser": "~14.0.2",
    "firebase": "^11.4.0",
    "moment": "^2.30.1",
    "prop-types": "^15.8.1",
    "react": "18.3.1",
    "react-native": "0.76.7",
    "react-native-bouncy-checkbox": "^4.1.2",
    "react-native-calendars": "^1.1310.0",
    "react-native-chart-kit": "^6.12.0",
    "react-native-confetti-cannon": "^1.5.2",
    "react-native-dotenv": "^3.4.11",
    "react-native-draggable-flatlist": "^4.0.1",
    "react-native-elements": "^3.4.3",
    "react-native-gesture-handler": "~2.20.2",
    "react-native-paper": "^5.13.1",
    "react-native-purchases": "^8.8.0",
    "react-native-reanimated": "~3.16.1",
    "react-native-safe-area-context": "4.12.0",
    "react-native-screens": "~4.4.0",
    "react-native-svg": "15.8.0",
    "react-native-vector-icons": "^10.2.0",
    "typescript": "^5.8.2"
  },
  "devDependencies": {
    "@babel/core": "^7.24.0",
    "dotenv": "^16.4.7"
  },
  "resolutions": {
    "string-width": "4.2.3",
    "wrap-ansi": "7.0.0"
  },
  "private": true
}

eas.json:

{
  "cli": {
    "version": ">= 15.0.14",
    "appVersionSource": "remote"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "channel": "development",
      "ios": {
        "resourceClass": "medium"
      },
      "environment": "development"
    },
    "preview": {
      "distribution": "internal",
      "channel": "preview",
      "ios": {
        "resourceClass": "medium"
      },
      "environment": "preview"
    },
    "production": {
      "channel": "production",
      "distribution": "store",
      "autoIncrement": true,
      "ios": {
        "resourceClass": "large",
        "cocoapods": "1.16.2",
        "buildConfiguration": "Release",
        "image": "latest"
      },
      "android": {
        "buildType": "app-bundle"
      },
      "environment": "production"
    }
  },
  "submit": {
    "production": {
      "ios": {
        "appleId": "xx",
        "ascAppId": "xx",
        "appleTeamId": "xx"
      }
    }
  }
}

enter image description hereenter image description hereenter image description here

What I've Tried:

  • Checked all certificates and provisioning profiles
  • checked documentation
  • tried a lot of stuff for 50+ hours,
  • tried building with ressourceclass large
  • Removed push notifications

本文标签: javascriptEas Production build failsdevelopment build works fineStack Overflow