Apple Build is failing

Hi, I am trying to create an Apple Build using “eas build” (wherein Android build is successful), but receiving the following error:-

:apple: iOS build failed:
Starting from Xcode 14, resource bundles are signed by default, which requires setting the development team for each resource bundle target.
To resolve this issue, downgrade to an older Xcode version using the “image” field in eas.json, or turn off signing resource bundles in your Podfile: expo/Podfile at cfbf29525fa7b25bb80aa7ccb10a434551f1e423 · expo/expo · GitHub.

I have tried various values for in eas.json for build.development.ios.image :-
macos-big-sur-11.4-xcode-13.0, macos-monterey-12.1-xcode-13.2, macos-monterey-12.3-xcode-13.3

Npm packages are:-

 "@react-native-async-storage/async-storage": "^1.17.11",
    "@react-native-community/netinfo": "8.2.0",
    "@react-navigation/native": "^6.0.14",
    "@react-navigation/native-stack": "^6.9.2",
    "buffer": "^6.0.3",
    "expo": "^45.0.0",
    "expo-checkbox": "~2.1.0",
    "expo-device": "~4.2.0",
    "expo-navigation-bar": "~1.2.0",
    "expo-notifications": "~0.15.4",
    "expo-status-bar": "~1.3.0",
    "expo-web-browser": "^10.1.0",
    "lodash": "^4.17.21",
    "mqtt": "^4.3.7",
    "native-base": "3.4.0",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-native": "0.68.2",
    "react-native-get-random-values": "^1.8.0",
    "react-native-safe-area-context": "4.2.4",
    "react-native-svg": "12.3.0",
    "react-native-web": "0.17.7"

eas.json file is:-

{
  "cli": {
    "version": ">= 0.52.0"
  },
  "build": {
    "development": {
      "distribution": "internal",
      "android": {
        "gradleCommand": ":app:assembleDebug"
      },
      "ios": {
        "buildConfiguration": "Debug",
        "image" : "macos-big-sur-11.4-xcode-13.0"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

Requesting to please help me out.

The local machine is MAC OS Monterey 12.4 running XCode 13.4

I had the same problem but I have solved it by using:
“image”: “macos-monterey-12.4-xcode-13.4”
Just make sure to add it to all profiles that you use in the eas.json file.

Tried as you suggested…and received the following error, wherein “macos-monterey-12.4-xcode-13.4” cannot be found.

% eas build
★ eas-cli@2.7.1 is now available, please upgrade.
Proceeding with outdated version

Error: eas.json is not valid [ValidationError: "build.development.ios.image" must be one of [default, latest, stable, 
macos-big-sur-11.4-xcode-12.5, macos-big-sur-11.4-xcode-13.0, macos-monterey-12.1-xcode-13.2, macos-monterey-12.3-xcode-13.3]. 
"build.preview.ios.image" must be one of [default, latest, stable, macos-big-sur-11.4-xcode-12.5, macos-big-sur-11.4-xcode-13.0, 
macos-monterey-12.1-xcode-13.2, macos-monterey-12.3-xcode-13.3]. "build.production.ios.image" must be one of [default, latest, stable, 
macos-big-sur-11.4-xcode-12.5, macos-big-sur-11.4-xcode-13.0, macos-monterey-12.1-xcode-13.2, macos-monterey-12.3-xcode-13.3]]

%

It looks like your eas-cli is out of date. Try upgrading it.

1 Like

Try updating to the latest eas-cli version, the image should be valid since its listed in the docs.

1 Like

I used “macos-monterey-12.3-xcode-13.3” in all profiles and it worked.

Thanx a ton.

1 Like