question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS build failing on Github actions with "An organization slug is required"

See original GitHub issue

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which SDK and version?

macOS 11 Xcode 13 @sentry/react-native": “^3.1.1”, react-native": “0.66.1”,

Steps to Reproduce

  1. Clone the repo or create your own basic setup - repo
  2. Create a Github workflow - mine
  3. If the workflow runs I get an error of build failing

The build command is

xcodebuild -workspace ios/Sql_Playground.xcworkspace -scheme SQL_PlayGround -configuration Release -sdk iphonesimulator -derivedDataPath ios/build

Output

/bin/sh -c /Users/runner/work/SQL-Play/SQL-Play/ios/build/Build/Intermediates.noindex/SQL_PlayGround.build/Release-iphonesimulator/SQL_PlayGround.build/Script-00DD1BFF1BD5951E006B06BC.sh
 error: An organization slug is required (provide with --org)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

Expected Result

It should build the app as it is doing locally

Actual Result

The build keeps failing here is the full log file image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ShivamJokercommented, Nov 17, 2021

Okay thanks for all the info the build worked after putting the env on top of the config

0reactions
ShivamJokercommented, Nov 17, 2021

@marandaneto one last question. How you guys are loading the auth token when building locally ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

An organization slug is required (provide with --org) error ...
I've installed the @sentry/react-native package and ran through the wizard which has updated my React Native project. When I try to compile the ......
Read more >
Fails to upload with organization slug (An ... - GitHub
XCode files an error for the "Upload Debug Symbols to Sentry" build task. This is the error: error: An organization slug is required...
Read more >
error: An organization slug is required (provide with --org) #60
Hi, trying to upload sourcemap to sentry, but catch this error: ERROR in Sentry CLI Plugin: Command failed: ...
Read more >
An organization slug is required (provide with --org) · Issue ...
The problem occurs when i get build on my local. my folder name -> .sentryclirc. ` defaults.url=xxx defaults.org=xxx defaults.project=xxx auth.
Read more >
org_slug is not used for sentry_set_commits #106 - GitHub
Environment When trying to use sentry_set_commits I get the error error: An organization slug is required (provide with --org) even though I ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found