ptmt / react-native-macos

[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa
MIT License
11.25k stars 429 forks source link

run-macos --configuration flag not recognized #215

Open jerrygreen opened 5 years ago

jerrygreen commented 5 years ago

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 commented 5 years ago

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

jerrygreen commented 5 years ago

@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'