Cordova platform add ios generating error

I have platform/ios on bitbucket.

[15:24:00]: Generating app manifest…
[15:24:00]: ----------------------------------
[15:24:00]: — Step: add_cordova_to_index —
[15:24:00]: ----------------------------------
[15:24:00]: cordova.js missing in index.html: adding it
[15:24:00]: Writing new index.html
[15:24:00]: cordova.js successfully added to index.html
[15:24:00]: ---------------------------------------
[15:24:00]: — Step: cordova platform add ios —
[15:24:00]: ---------------------------------------
[15:24:00]: $ cordova platform add ios
[15:24:00]: ▸ Using cordova-fetch for cordova-ios@^6.2.0
[15:24:00]: ▸ Platform ios already added.
[15:24:00]: -------------------------
[15:24:00]: — Step: upload_logs —
[15:24:00]: -------------------------
[15:24:05]: --------------------------------------
[15:24:05]: — Step: sentry_capture_exception —
[15:24:05]: --------------------------------------
I, [2025-02-21T15:24:07.199566 #2217] INFO – sentry: ** [Sentry] [Transport] Sending envelope with items [event] 017ae742bb0545868e1b0fafff7d0ae9 to Sentry
[15:24:07]: ---------------------------
[15:24:07]: — Step: shell command —
[15:24:07]: ---------------------------
[15:24:07]: Exit status of command 'cordova platform add ios ’ was 1 instead of 0.
Using cordova-fetch for cordova-ios@^6.2.0
Platform ios already added.

±-----------------------------------------+
| Lane Context |
±---------------------±------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios build_cordova |
| IONIC_CLI_VERSION | 7.2.0 |
| NODE_PACKAGE_MANAGER | npm |
| PROJECT_WEB_DIR | www |
±---------------------±------------------+
[15:24:07]: Exit status of command 'cordova platform add ios ’ was 1 instead of 0.
Using cordova-fetch for cordova-ios@^6.2.0
Platform ios already added.

±-----------------------------------------------+
| fastlane summary |
±-----±--------------------------±------------+
| Step | Action | Time (in s) |
±-----±--------------------------±------------+
| 1 | add_extra_platforms | 0 |
| 2 | default_platform | 0 |
| 3 | prepare_environment | 0 |
| 4 | sentry_init | 0 |
| 5 | begin_building | 0 |
| 6 | build_summary | 2 |
| 7 | set_ionic_cli | 0 |
| 8 | detect_package_manager | 0 |
| 9 | add_git_credentials | 0 |
| 10 | get_appflow_config | 0 |
| 11 | dependency_install | 64 |
| 12 | get_web_dir | 0 |
| 13 | modify_config_xml | 0 |
| 14 | build_pro_app | 44 |
| 15 | add_cordova_to_index | 0 |
| :boom: | cordova platform add ios | 0 |
| 17 | upload_logs | 4 |
| 18 | sentry_capture_exception | 1 |
| 19 | shell command | 0 |
±-----±--------------------------±------------+

[15:24:07]: fastlane finished with errors
/opt/homebrew/Cellar/fastlane/2.225.0/libexec/bin/fastlane: [!] Exit status of command 'cordova platform add ios ’ was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
Using cordova-fetch for cordova-ios@^6.2.0
Platform ios already added.

Running after_script
Running after script…
$ clean-up
Cleaning up project directory and file based variables
Terminating VM: build_stack_2024.12_arm64-1740151271943428000 (b05dc4fd-44f1-4ef4-bacb-d0a75aeb4ac4) | Controller Instance ID: a129c173-3028-4ba9-67bd-13b565b86471 | Host: 10.2.181.103
ERROR: Job failed: Process exited with status 1