I have a react application with ionic framework and capacitor.
Trying to build a Native IOS Binary.
I get this error:
/usr/local/Cellar/fastlane/2.148.1/libexec/bin/fastlane: [!] Exit status of command ‘npm run build’ was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
[15:01:45]: ▸ npm ERR! code ELIFECYCLE
[15:01:45]: ▸ npm ERR! errno 1
[15:01:45]: ▸ npm ERR! rpagentapp@0.0.1 build: `react-scripts build`
[15:01:45]: ▸ npm ERR! Exit status 1
[15:01:45]: ▸ npm ERR!
[15:01:45]: ▸ npm ERR! Failed at the rpagentapp@0.0.1 buildpt.
[15:01:45]: ▸ npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[15:01:45]: ▸ npm ERR! A complete log of this run can be found in:
[15:01:45]: ▸ npm ERR! /Users/ionic/.npm/_logs/2020-08-25T15_01_45_586Z-debug.log
[15:01:45]: -------------------------
[15:01:45]: --- Step: upload_logs ---
[15:01:45]: -------------------------
[15:01:49]: ---------------------------
[15:01:49]: --- Step: shell command ---
[15:01:49]: ---------------------------
[15:01:49]: -----------------------------
[15:01:49]: --- Step: delete_keychain ---
[15:01:49]: -----------------------------
[15:01:49]: Exit status of command 'npm run build' was 1 instead of 0.
> rpagentapp@0.0.1 build /Users/ionic/builds/JordanSpackman/RPAgentApp
> react-scripts build
Creating an optimized production build...
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rpagentapp@0.0.1 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rpagentapp@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ionic/.npm/_logs/2020-08-25T15_01_45_586Z-debug.log
+-------------------------------------+----------------------------------------------------------------------------------+
| Lane Context |
+-------------------------------------+----------------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios package_build |
| PROJECT_WEB_DIR | build |
| DOWNLOAD_CERTS_PROVISION_FILE_UUID | 111b0be5-51b9-4bf8-b954-faf91bd4dc39 |
| DOWNLOAD_CERTS_CODESIGNING_IDENTITY | iPhone Developer: [redacted] |
| DOWNLOAD_CERTS_TEAM_ID | [redacted] |
| DOWNLOAD_CERTS_PROJECT_NAME | [redacted] |
| DOWNLOAD_CERTS_CERT_PATH | [redacted] |
| DOWNLOAD_CERTS_PROVISIONING_PATH | /Users/ionic/builds/ [redacted]/provision_file.mobileprovision |
| SIGH_PROFILE_PATHS | ["/Users/ionic/builds/[redacted] /provision_file.mobileprovision"] |
+-------------------------------------+----------------------------------------------------------------------------------+
[15:01:49]: Exit status of command 'npm run build' was 1 instead of 0.
> rpagentapp@0.0.1 build /Users/ionic/builds/JordanSpackman/RPAgentApp
> react-scripts build
Creating an optimized production build...
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rpagentapp@0.0.1 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rpagentapp@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ionic/.npm/_logs/2020-08-25T15_01_45_586Z-debug.log
+------+-----------------------+-------------+
| fastlane summary |
+------+-----------------------+-------------+
| Step | Action | Time (in s) |
+------+-----------------------+-------------+
| 1 | default_platform | 0 |
| 2 | build_summary | 0 |
| 3 | detect_native_type | 0 |
| 4 | get_web_dir | 0 |
| 5 | add_git_credentials | 0 |
| 6 | modify_cap_web_config | 0 |
| 7 | create_keychain | 0 |
| 8 | download_certs | 1 |
| 9 | import_certificate | 0 |
| 💥 | build_pro_app | 241 |
| 11 | upload_logs | 3 |
| 12 | shell command | 0 |
| 13 | delete_keychain | 0 |
+------+-----------------------+-------------+
[15:01:49]: fastlane finished with errors
/usr/local/Cellar/fastlane/2.148.1/libexec/bin/fastlane: [!] Exit status of command 'npm run build' was 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)
> rpagentapp@0.0.1 build /Users/ionic/builds/JordanSpackman/RPAgentApp
> react-scripts build
Creating an optimized production build...
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rpagentapp@0.0.1 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rpagentapp@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ionic/.npm/_logs/2020-08-25T15_01_45_586Z-debug.log
Running after script...
$ clean-up
ERROR: Job failed: Process exited with: 1. Reason was: ()