Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-macos --configuration flag not recognized #215

Open
jerrygreen opened this issue Nov 4, 2018 · 2 comments
Open

run-macos --configuration flag not recognized #215

jerrygreen opened this issue Nov 4, 2018 · 2 comments
Labels

Comments

@jerrygreen
Copy link

To disable warnings, etc? I don't see such option by default – it's builded only for "Debug" folder. I don't see such options in xcode also.

P.S. I'm new to cocoa btw (and xcode too)

@ptmt
Copy link
Owner

ptmt commented Nov 5, 2018

Via Xcode, go to Edit Scheme and choose Release
image

Via cli:
react-native-macos run-macos ----configuration Release

https://facebook.github.io/react-native/docs/running-on-device#building-your-app-for-production

@ptmt ptmt closed this as completed Nov 5, 2018
@jerrygreen
Copy link
Author

@ptmt, in Xcode it works – cool, thanks

however, the command:

react-native-macos run-macos --configuration Release

gives me this error:

Jerrys-MacBook-Pro:client jerrygreen$ react-native-macos run-macos --configuration Release
Scanning folders for symlinks in /Users/jerrygreen/projects/react-native-app/node_modules (94ms)

  error: unknown option `--configuration'

@aleclarson aleclarson reopened this Feb 6, 2019
@aleclarson aleclarson added the bug label Feb 6, 2019
@aleclarson aleclarson changed the title How to build for prod? run-macos --configuration flag not recognized Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants