Builds failing on CircleCI because of sentry-cli (node_modules/@sentry/cli/sentry-cli: cannot execute binary file)
See original GitHub issueEnvironment
How do you use Sentry? Sentry SaaS
Which SDK and version? @sentry/react-native@3.1.1
Steps to Reproduce
- Add @sentry/react-native@3.1.1 to your React Native project
- Configure your project using
npx @sentry/wizard -i reactNative -p ios android
- Try to build your app on CircleCI
Expected Result
I expect the app to be building normally, just as it would do locally.
Actual Result
Getting the following error:
▸ Running script 'Bundle React Native code and images'
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/distiller/Library/Developer/Xcode/DerivedData/asr********-alszcgapqfuvrgddpvgnyjssmgtd/Build/Intermediates.noindex/ArchiveIntermediates/********/IntermediateBuildFilesPath/********.build/Release-iphoneos/asr********.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)
[07:34:03]: Exit status: 65
[07:34:03]:
[07:34:03]: Maybe the error shown is caused by using the wrong version of Xcode
[07:34:03]: Found multiple versions of Xcode in '/Applications/'
[07:34:03]: Make sure you selected the right version for your project
[07:34:03]: This build process was executed using '/Applications/Xcode-12.5.1.app'
[07:34:03]: If you want to update your Xcode path, either
[07:34:03]:
[07:34:03]: - Specify the Xcode version in your Fastfile
[07:34:03]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[07:34:03]:
[07:34:03]: - Specify an absolute path to your Xcode installation in your Fastfile
[07:34:03]: ▸ xcode_select "/Applications/Xcode8.app"
[07:34:03]:
[07:34:03]: - Manually update the path using
[07:34:03]: ▸ sudo xcode-select -s /Applications/Xcode.app
[07:34:03]:
+---------------+--------------------------------+
| Build environment |
+---------------+--------------------------------+
| xcode_path | /Applications/Xcode-12.5.1.app |
| gym_version | 2.194.0 |
| export_method | ad-hoc |
| sdk | iPhoneOS14.5.sdk |
+---------------+--------------------------------+
[07:34:03]: ▸ export arch\=undefined_arch
[07:34:03]: ▸ export variant\=normal
[07:34:03]: ▸ /bin/sh -c /Users/distiller/Library/Developer/Xcode/DerivedData/asr********-alszcgapqfuvrgddpvgnyjssmgtd/Build/Intermediates.noindex/ArchiveIntermediates/asr********/IntermediateBuildFilesPath/********.build/Release-iphoneos/********.build/Script-00DD1BFF1BD5951E006B06BC.sh
[07:34:03]: ▸ /Users/distiller/project/node_modules/@sentry/cli/sentry-cli: /Users/distiller/project/node_modules/@sentry/cli/sentry-cli: cannot execute binary file
[07:34:03]: ▸ Command PhaseScriptExecution failed with a nonzero exit code
Extra information
The builds succeeds whenever i remove the build phase “Uploading debug symbols to Sentry” and remove the following lines that were added to my “Bundle React Native code and images:” build phase:
SENTRY_PROPERTIES=sentry.properties
export EXTRA_PACKAGER_ARGS=\"--sourcemap-output $DERIVED_FILE_DIR/main.jsbundle.map\"
export NODE_BINARY=node
../node_modules/@sentry/cli/bin/sentry-cli react-native xcode
Tried solutions
- Tried applying
chmod +x
on@sentry/cli/sentry-cli
and@sentry/cli/bin/sentry-cli
- Tried solution in this comment
- Tried solution in this comment
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Circle-Ci build failed - Build Environment - CircleCI Discuss
I am deploying my application at staging server. But it is failing during deployment and showing this error.
Read more >Build fail with circleci/node:latest
Hi, My build started to fail with the latest version of the nodejs docker image ... This is my config file, The issue...
Read more >Build passed 2 months ago; Same fails today - CircleCI Discuss
When I SSH into the container and run the commands manually I get the same errors. I would have included images of tails...
Read more >Circleci local execute fails - Feedback & Bug Reports
I'm on MacOs 10.15.5 using Docker Desktop v20.10.7 and I'm getting the following error when trying to run circle ci locally:.
Read more >Debugging random Node.js build failures - CircleCI Discuss
js on your project and run a job on Docker executor, you might see this error more often. This is because the host...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s the same for me. It stopped building after the sentry install.
@matt-dalton Yes by adding Auth-Token for Sentry CLI inside the pipeline