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.

Found argument 'debug-files' which wasn't expected, or isn't valid in this context

See original GitHub issue

OS:

  • MacOS

Platform:

  • iOS

SDK:

  • @sentry/react-native (>= 1.0.0)

SDK version: 4.8.0

react-native version: 0.70.5

Are you using Expo?

  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)

[Description]

Steps to reproduce:

  1. Fresh project
  2. Install via npm install --save @sentry/react-native
  3. Init via npx @sentry/wizard -i reactNative -p iOS android
  4. Try to run nom run ios

Actual result:

    export YACC\=yacc
    export _WRAPPER_CONTENTS_DIR_SHALLOW_BUNDLE_NO\=/Contents
    export _WRAPPER_PARENT_PATH_SHALLOW_BUNDLE_NO\=/..
    export _WRAPPER_RESOURCES_DIR_SHALLOW_BUNDLE_NO\=/Resources
    export __IS_NOT_MACOS\=YES
    export __IS_NOT_MACOS_macosx\=NO
    export __IS_NOT_SIMULATOR\=NO
    export __IS_NOT_SIMULATOR_simulator\=NO
    export arch\=undefined_arch
    export variant\=normal
    /bin/sh -c /Users/myuser/Library/Developer/Xcode/DerivedData/myapp-bnretglhvuyjvdfzbdwjhpxqhrof/Build/Intermediates.noindex/myapp.build/Debug-iphonesimulator/myapp.build/Script-453A44E290D346FAB464AD16.sh
error: Found argument 'debug-files' which wasn't expected, or isn't valid in this context

USAGE:
    sentry-cli <SUBCOMMAND>

For more information try --help


** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution Upload\ Debug\ Symbols\ to\ Sentry /Users/myuser/Library/Developer/Xcode/DerivedData/myapp-bnretglhvuyjvdfzbdwjhpxqhrof/Build/Intermediates.noindex/myapp.build/Debug-iphonesimulator/myapp.build/Script-453A44E290D346FAB464AD16.sh (in target 'myapp' from project 'myapp')
(1 failure)

Expected result:

App built

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
indapubliccommented, Nov 16, 2022

5.0.0-alpha.7 works. Closing. Big thanks @krystofwoldrich and @marandaneto

1reaction
marandanetocommented, Nov 15, 2022

You can also use the Sentry RN SDK 4.x but you have to follow that step and fix the stuff manually, including the Xcode bundle step that is probably messed up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Found argument '-m' which wasn't expected, or isn't ...
c# - Error: Found argument '-m' which wasn't expected, or isn't valid in this context while invoking FirefoxDriver and Firefox - Stack Overflow ......
Read more >
kbknapp/clap-rs - Gitter
If I enter a subcommand wrong, it says says "Found argument '...' which wasn't expected". Is there a way to say that the...
Read more >
Error Messages - Lauterbach
A PRACTICE command that expects ON or OFF as argument, was called inside a PRACTICE script ... WARNING: debug file does not match...
Read more >
errors.rs.html -- source - Docs.rs
Source to the Rust file `src/parse/errors.rs`. ... "Found argument '{}' which wasn't expected, or isn't valid in this context{}", a, did_you_mean_message ) ...
Read more >
Debugging errors - dbt Developer Hub
Incorrect YAML spec​ · Open the file (e.g. models/schema.yml ) as per the error message · Search for the offending key (e.g. hello...
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