React-native --variant选项 [英] React-native --variant option
问题描述
除了 release
以外,-variant
选项的可能值是什么?它在哪里记录?我在本机文档中找不到.
What are the possible values for --variant
option except for release
? Where is it documented? I couldn't find in react-native docs.
我应该使用 debug
或 devDebug
值来指定此选项以进行调试吗?
Should I specify this option with debug
or devDebug
value for debug build?
谢谢
推荐答案
只有两个选项. release
和 debug
默认的 variant
是debug,因此您无需为其设置-variant
标志!
The default variant
is debug, so you don't need to set the --variant
flag for it!
重要: variant
仅适用于Android( react-native run-android
)
Important: variant
is only available for Android (react-native run-android
)
您可以在iOS上使用 react-native run-ios --configuration Release
,或仅将XCode Scheme更改为 Release
You could use react-native run-ios --configuration Release
for iOS, or just change the XCode Scheme to Release
这篇关于React-native --variant选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!