Found argument 'debug-files' which wasn't expected, or isn't valid in this context
See original GitHub issueOS:
- 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:
- Fresh project
- Install via
npm install --save @sentry/react-native
- Init via
npx @sentry/wizard -i reactNative -p iOS android
- 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:
- Created 10 months ago
- Comments:8 (3 by maintainers)
Top 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 >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
5.0.0-alpha.7
works. Closing. Big thanks @krystofwoldrich and @marandanetoYou 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.