EAS Build IOS - local device is not working

I’m using expo-cli 6.3.1 (but also tried with expo-cli 6.0.6) I’m trying really hard to create a .ipa to install it in my iOS device (internal distribution) with this command eas build --platform ios --profile development but it never works. As EAS Build logs says, it seems to be a problem with fastlane signing but I think all credential configurations are setted propertly, even my device UDID created and included.

Here is my eas.json

{
  "cli": {
    "version": ">= 0.54.1"
  },
  "build": {
    "development": {
      "distribution": "internal",
      "developmentClient": true,
      "android": {
        "gradleCommand": ":app:assembleDebug",
        "image": "latest",
        "buildType": "apk"
      },
      "ios": {
        "buildConfiguration": "Debug",
        "image": "macos-monterey-12.4-xcode-13.4"
      }
    }
    ...
  },
  "submit": {
    "production": {}
  }
}

and Android .apk is working fine but after 20 minutes build of .ipa the result is always the same:

The following build commands failed:
	PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/expo/Library/Developer/Xcode/DerivedData/AbiProAppNative-bwikbnfritdpciagfobdijzobeaj/Build/Intermediates.noindex/ArchiveIntermediates/AbiProAppNative/IntermediateBuildFilesPath/AbiProAppNative.build/Debug-iphoneos/AbiProAppNative.build/Script-231CAC6C9625ED718951713E.sh (in target 'AbiProAppNative' from project 'AbiProAppNative')
(1 failure)
Exit status: 65
+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.206.1                 |
| export_method | development             |
| sdk           | iPhoneOS15.5.sdk        |
+---------------+-------------------------+
Your `export_method` in gym is defined as `development`
which might cause problems when signing your application
Are you sure want to build and export for development?
Please make sure to define the correct export methods when calling
gym in your Fastfile or from the command line
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

I give you some more information if it helps:

+---------------------------------------------+
|            Summary for gym 2.206.1          |
+---------------------------------------------+
| workspace                                         | ./AbiProAppNative.xcworkspace                                                                                                               |
| scheme                                            | AbiProAppNative                                                                                                                             |
| clean                                             | true                                                                                                                                        |
| output_directory                                  | ./build                                                                                                                                     |
| output_name                                       | App                                                                                                                                         |
| configuration                                     | Debug                                                                                                                                       |
| silent                                            | false                                                                                                                                       |
| skip_package_ipa                                  | false                                                                                                                                       |
| skip_package_pkg                                  | false                                                                                                                                       |
| export_method                                     | development                                                                                                                                 |
| export_options.provisioningProfiles.org.abiproapp | *[expo] org.abiproapp AdHoc 1676887999823                                                                                                   |
| export_xcargs                                     | OTHER_CODE_SIGN_FLAGS="--keychain /var/folders/h2/gp9wlkv11lg0qj6y2mnqgc_40000gn/T/turtle-v2-eb18f880-e72d-417a-aa16-7041ccb1d63b.keychain" |
| build_path                                        | /Users/expo/Library/Developer/Xcode/Archives/2023-02-20                                                                                     |
| result_bundle                                     | false                                                                                                                                       |
| buildlog_path                                     | ~/Library/Logs/gym                                                                                                                          |
| destination                                       | generic/platform=iOS                                                                                                                        |
| suppress_xcode_output                             | true                                                                                                                                        |
| xcodebuild_formatter                              | xcpretty                                                                                                                                    |
| disable_xcpretty                                  | true                                                                                                                                        |
| skip_profile_detection                            | false                                                                                                                                       |
| xcodebuild_command                                | xcodebuild                                                                                                                                  |
| skip_package_dependencies_resolution              | false                                                                                                                                       |
| disable_package_automatic_updates                 | false                                                                                                                                       |
| use_system_scm                                    | false                                                                                                                                       |
| xcode_path                                        | /Applications/Xcode.app                                                                                                                     |
+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------+

Thanks!

Today I am also facing the same issue :confused: My eas configuration is almost the same (the cli version is bigger), but I cannot create a build :confused: