EAS Build failure - Managed iOS (Run fastlane)

I am experimenting with EAS build and I am getting the following error during the Fastlane step. I have been building the app with “expo build:ios”.

› Copying ios/APPSCHEME/Supporting/Expo.plist ➜ Expo.plist
› Compiling APPSCHEME » SplashScreen.storyboard
› Compiling APPSCHEME » LaunchScreen.xib
› Preparing APPSCHEME » Info.plist
› Executing APPSCHEME » Bundle React Native code and images

❌  error: File /Users/expo/Library/Developer/Xcode/DerivedData/APPSCHEME-fapypsuvfdqnjlcublrxplcuvinv/Build/Intermediates.noindex/ArchiveIntermediates/APPSCHEME/BuildProductsPath/Release-iphoneos/pluss60dev.app/main.jsbundle does not exist. This must be a bug with


❌ Metro encountered an error:
Error loading Metro config and Expo app config: resolve_from_1.default.silent is not a function

Make sure your project is configured properly and your app.json / app.config.js is valid.
If you are using environment variables in app.config.js, verify that you have set them in your EAS Build profile configuration or secrets.
› Generating debug APPSCHEME » pluss60dev.app.dSYM
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/APPSCHEME-fapypsuvfdqnjlcublrxplcuvinv/Build/Intermediates.noindex/ArchiveIntermediates/APPSCHEME/IntermediateBuildFilesPath/APPSCHEME.build/Release-iphoneos/APPSCHEME.build/Script-00DD1BFF1BD5951E006B06BC.sh
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
	PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/APPSCHEME-fapypsuvfdqnjlcublrxplcuvinv/Build/Intermediates.noindex/ArchiveIntermediates/APPSCHEME/IntermediateBuildFilesPath/APPSCHEME.build/Release-iphoneos/APPSCHEME.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)
Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.185.1                 |
| sdk         | iPhoneOS14.5.sdk        |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
It's hard to tell what's causing the error, so we wrote some guides on how
to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
Before submitting an issue on GitHub, please follow the guide above and make
sure your project is set up correctly.
fastlane uses `xcodebuild` commands to generate your binary, you can see the
the full commands printed out in yellow in the above log.
Make sure to inspect the output above, as usually you'll find more error information there
[stderr] [!] Error building the application - see the log above
Error: Fastlane build failed with unknown error. Please refer to the "Run fastlane" and "Xcode Logs" phases.
Fastlane errors in most cases are not printed at the end of the output, so you may not find any useful information in the last lines of output when looking for an error message.

And here’s the content of eas.json,

{
  "builds": {
    "ios": {
      "release": {
        "workflow": "managed",
        "buildType": "release",
        "distribution": "store",
        "image": "default",
        "node": "12.22.1",
        "expoCli": "4.5.2",
        "cache": {
          "disabled": true
        }
      },
      "development": {
        "workflow": "managed",
        "buildType": "development-client",
        "distribution": "internal",
        "image": "default"
      }
    },
    "android": {
      "release": {
        "workflow": "managed"
      },
      "development": {
        "workflow": "managed",
        "buildType": "development-client",
        "distribution": "internal"
      }
    }
  }
}

it looks like there might be a bug in your app.config.js. if you can share a reproducible example or a link to your build page we may be able to help more!