EAS Build for IOS fails

Hi,
I was able to build a bundle for android but when trying to build one for IOS,I got the following error

› Executing lottie-react-native Pods/lottie-react-native » Copy generated compatibility header
› Packaging react-native-reanimated Pods/RNReanimated » libRNReanimated.a
› Compiling Pods/Pods-LonghorneLearning » Pods-LonghorneLearning-dummy.m
› Packaging Pods/Pods-LonghorneLearning » libPods-LonghorneLearning.a
› Executing LonghorneLearning » [CP] Check Pods Manifest.lock
› Executing LonghorneLearning » Start Packager
› Compiling LonghorneLearning » noop-file.swift
› Compiling LonghorneLearning » main.m
› Compiling LonghorneLearning » longhornelearning_vers.c
› Compiling LonghorneLearning » AppDelegate.m
› Linking   LonghorneLearning » longhornelearning

❌  ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1205.0.22.9.0_0' Reader: '1200.0.32.29_0')', using libLTO version 'LLVM version 12.0.0, (clang-1200.0.32.29)' for architecture arm64


❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

⚠️  Pods/boost-for-react-native: iOS@8.0 deployment version mismatch, expected >= 9.0 <= 14.4.99
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	Ld /Users/expo/Library/Developer/Xcode/DerivedData/LonghorneLearning-ckrpmxitclxpwbhiowklzfobvrnj/Build/Intermediates.noindex/ArchiveIntermediates/LonghorneLearning/InstallationBuildProductsLocation/Applications/longhornelearning.app/longhornelearning normal
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
	Ld /Users/expo/Library/Developer/Xcode/DerivedData/LonghorneLearning-ckrpmxitclxpwbhiowklzfobvrnj/Build/Intermediates.noindex/ArchiveIntermediates/LonghorneLearning/InstallationBuildProductsLocation/Applications/longhornelearning.app/longhornelearning normal
(1 failure)
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.178.0                 |
| sdk         | iPhoneOS14.4.sdk        |
+-------------+-------------------------+

Here is my app.json

{
  "expo": {
    "name": "Longhorn eLearning",
    "slug": "longhorn-elearning",
    "version": "1.2.1",
    "orientation": "portrait",
    "icon": "./assets/images/brand/app_icon.png",
    "splash": {
      "image": "./assets/images/brand/app_icon.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": ["**/*"],
    "ios": {
      "supportsTablet": true,
      "buildNumber": "1.2.1",
      "bundleIdentifier": "com.longhornpublishers.longhornelearning"
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/brand/app_icon.png",
        "backgroundColor": "#FFFFFF"
      },
      "useNextNotificationsApi": true,
      "permissions": ["NOTIFICATIONS"],
      "package": "com.longhornpublishers.longhornelearning",
      "versionCode": 5,
      "googleServicesFile": "./google-services.json"
    }
  }
}

And my package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject"
  },
  "dependencies": {
    "@eva-design/eva": "^2.1.0",
    "@expo-google-fonts/poppins": "^0.1.0",
    "@expo/vector-icons": "^12.0.5",
    "@mdi/js": "^5.9.55",
    "@mobily/stacks": "^1.1.3",
    "@react-native-async-storage/async-storage": "^1.13.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-picker/picker": "1.9.11",
    "@react-navigation/drawer": "^5.12.5",
    "@react-navigation/material-bottom-tabs": "^5.3.15",
    "@react-navigation/material-top-tabs": "^5.3.15",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.4",
    "@reduxjs/toolkit": "^1.5.1",
    "@ui-kitten/components": "^5.1.0",
    "axios": "^0.21.1",
    "expo": "~41.0.1",
    "expo-app-loading": "^1.0.3",
    "expo-av": "^9.2.3",
    "expo-constants": "~10.1.3",
    "expo-font": "~9.1.0",
    "expo-notifications": "~0.11.6",
    "expo-secure-store": "~10.1.0",
    "expo-status-bar": "~1.0.4",
    "formik": "^2.2.6",
    "lodash.filter": "^4.6.0",
    "lottie-react-native": "3.5.0",
    "react": "16.13.1",
    "react-dom": "16.13.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
    "react-native-circular-progress": "^1.3.7",
    "react-native-copilot": "^2.5.1",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-modal": "^11.10.0",
    "react-native-multiple-select-list": "^1.0.4",
    "react-native-paper": "^4.8.1",
    "react-native-picker-checkbox": "^2.0.2",
    "react-native-ratings": "^8.1.0",
    "react-native-raw-bottom-sheet": "^2.2.0",
    "react-native-reanimated": "~2.1.0",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "~3.0.0",
    "react-native-shapes": "^0.1.0",
    "react-native-skeleton-content": "^1.0.22",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-svg": "^12.1.0",
    "react-native-tab-view": "^2.16.0",
    "react-native-web": "~0.13.12",
    "react-redux": "^7.2.4",
    "yup": "^0.32.9"
  },
  "devDependencies": {
    "@babel/core": "~7.9.0"
  },
  "private": true,
  "resolutions": {
    "@turf/difference": "6.0.1"
  }
}

try setting image in your eas.json Configuration with eas.json - Expo Documentation to macos-big-sur-11.4-xcode-12.5 or latest

by default sdk 41 and lower is using xcode12.4 because some of the older packages from those sdks won’t build using new xcode and sdk42 is using xcode12.5, because some of the packages require at least that version. You are still on sdk41, but probably some libraries you are using require new xcode

Hi,
adding “image” to eas json worked.
Thank you for the quick assistance