{"action":"opened","issue":{"url":"https://api.github.com/repos/getsentry/react-native-sentry/issues/401","repository_url":"https://api.github.com/repos/getsentry/react-native-sentry","labels_url":"https://api.github.com/repos/getsentry/react-native-sentry/issues/401/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/react-native-sentry/issues/401/comments","events_url":"https://api.github.com/repos/getsentry/react-native-sentry/issues/401/events","html_url":"https://github.com/getsentry/react-native-sentry/issues/401","id":319394317,"number":401,"title":"xcodebuild fails with \"/node_modules/@sentry/cli/sentry-cli: cannot execute binary file\"","user":{"login":"amast09","id":2170846,"avatar_url":"https://avatars0.githubusercontent.com/u/2170846?v=4","gravatar_id":"","url":"https://api.github.com/users/amast09","html_url":"https://github.com/amast09","followers_url":"https://api.github.com/users/amast09/followers","following_url":"https://api.github.com/users/amast09/following{/other_user}","gists_url":"https://api.github.com/users/amast09/gists{/gist_id}","starred_url":"https://api.github.com/users/amast09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amast09/subscriptions","organizations_url":"https://api.github.com/users/amast09/orgs","repos_url":"https://api.github.com/users/amast09/repos","events_url":"https://api.github.com/users/amast09/events{/privacy}","received_events_url":"https://api.github.com/users/amast09/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-02T02:59:26Z","updated_at":"2018-05-02T02:59:26Z","closed_at":null,"author_association":"NONE","body":"OS:\r\n- [ ]  Windows\r\n- [X]  MacOS\r\n- [ ]  Linux\r\n\r\n_Platform:_\r\n- [X]  iOS\r\n- [ ]  Android\r\n\r\nOutput of `node -v && npm -v && npm ls --prod --depth=0`\r\n\r\n```\r\nbash-3.2$ node -v && npm -v && npm ls --prod --depth=0\r\nv9.10.0\r\n5.6.0\r\n/Users/distiller\r\n└── (empty)\r\n```\r\n\r\nConfig:\r\n\r\n```\r\nSentry.config('https://...@sentry.io/...', {\r\n  logLevel: SentryLog.Error\r\n}).install()\r\n```\r\n\r\n\r\n\r\n---\r\nI have following issue:\r\n\r\nxcodebuild fails during `Bundle React Native code and images` build phase. The build phase has the following content,\r\n\r\n```\r\nexport SENTRY_PROPERTIES=sentry.properties\r\nexport NODE_BINARY=node\r\n../node_modules/@sentry/cli/bin/sentry-cli react-native xcode \\\r\n    ../node_modules/react-native/scripts/react-native-xcode.sh\r\n```\r\n\r\nThe error I get is the following,\r\n```\r\n[19:25:35]: ▸     export arch=arm64\r\n[19:25:35]: ▸     export variant=normal\r\n[19:25:35]: ▸     /bin/sh -c /Users/distiller/project/fastlane/generated/Build/Intermediates.noindex/ArchiveIntermediates/PoolOfficeManager/IntermediateBuildFilesPath/PoolOfficeManager.build/Release-iphoneos/PoolOfficeManager.build/Script-00DD1BFF1BD5951E006B06BC.sh\r\n[19:25:35]: ▸ /Users/distiller/project/node_modules/@sentry/cli/sentry-cli: /Users/distiller/project/node_modules/@sentry/cli/sentry-cli: cannot execute binary file\r\n[19:25:35]: ▸ Command /bin/sh failed with exit code 126\r\n```\r\n\r\nI am using,\r\n* Fastlane `2.78.0`\r\n* CircleCI `2.0`\r\n* XCode `9.3`\r\n* React Native `0.53.0`\r\n* React Native Sentry `0.36.0`\r\n\r\n### Important Notes\r\n* I am running this on CircleCI.\r\n* If I comment out the Sentry part of the `Bundle React Native code and images` phase the build succeeds.\r\n* The build succeeds when running locally but fails when run in CircleCI.\r\n\r\n**Steps to reproduce:**\r\n(Kind of hard to reproduce with CircleCI being involved however this is the xcodebuild command that fails)\r\n- set -o pipefail && xcodebuild -scheme <scheme name> -project ios/<project name>.xcodeproj -configuration Release -destination 'generic/platform=iOS' -archivePath fastlane/generated/POM\\ 2018-05-01\\ 19.22.13.xcarchive -derivedDataPath 'fastlane/generated' clean archive | tee /Users/distiller/project/fastlane/generated/<log file name>.log | xcpretty\r\n\r\n**Actual result:**\r\n- Build fails saying `/Users/distiller/project/node_modules/@sentry/cli/sentry-cli: cannot execute binary file`\r\n\r\n**Expected result:**\r\n- Build Succeeds\r\n\r\nPlease let me know if you need any additional details (React Native + Fastlane + CircleCI + MacOS + Xcode is a lot of moving parts), been trying to fix this for about 7 hours now and any help would be greatly appreciated!"}}
{"actor":{"display_login":"amast09"}}